ruifeng_liu 3 년 전
부모
커밋
ace8d9594b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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))