|
@@ -15,7 +15,7 @@ class PatentnoticeService extends CrudService {
|
|
|
this.adminModel = this.ctx.model.Admin;
|
|
|
}
|
|
|
|
|
|
- async query(query, { skip = 0, limit = 0 } = 0) {
|
|
|
+ async query(query, { skip = 0, limit = 0 } = {}) {
|
|
|
query = await this.resetQuery(query);
|
|
|
console.log(query);
|
|
|
const data = await this.model.find(query).skip(parseInt(skip)).limit(parseInt(limit))
|