File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5555 "body-parser" : " ^1.14.1" ,
5656 "feathers" : " ^2.0.0-pre.4" ,
5757 "feathers-rest" : " ^1.2.2" ,
58- "feathers-service-tests" : " ^0.5 .0" ,
58+ "feathers-service-tests" : " ^0.6 .0" ,
5959 "feathers-socketio" : " ^1.3.3" ,
6060 "jshint" : " ^2.8.0" ,
6161 "mocha" : " ^2.5.0" ,
Original file line number Diff line number Diff line change @@ -76,10 +76,12 @@ class Service {
7676 }
7777
7878 find ( params ) {
79+ const paginate = typeof params . paginate !== 'undefined' ?
80+ params . paginate : this . paginate ;
7981 // Call the internal find with query parameter that include pagination
80- const result = this . _find ( params , query => filter ( query , this . paginate ) ) ;
82+ const result = this . _find ( params , query => filter ( query , paginate ) ) ;
8183
82- if ( ! this . paginate . default ) {
84+ if ( ! ( paginate && paginate . default ) ) {
8385 return result . then ( page => page . data ) ;
8486 }
8587
You can’t perform that action at this time.
0 commit comments