ruifeng_liu hace 3 años
padre
commit
ace8d9594b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/service/patent/patentnotice.js

+ 1 - 1
app/service/patent/patentnotice.js

@@ -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))