guhongwei 2 years ago
parent
commit
4aa65b7a96
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/notice.js

+ 1 - 1
app/service/notice.js

@@ -17,7 +17,7 @@ class NoticeService extends CrudService {
     const condition = { ...query };
     const condition = { ...query };
     if (user_id) condition.receive_user = { $elemMatch: { user_id } };
     if (user_id) condition.receive_user = { $elemMatch: { user_id } };
     const data = await this.model.find(condition).skip(parseInt(skip)).limit(parseInt(limit));
     const data = await this.model.find(condition).skip(parseInt(skip)).limit(parseInt(limit));
-    if (data.length === 0) throw new BusinessError(ErrorCode.DATA_NOT_EXIST);
+    // if (data.length === 0) throw new BusinessError(ErrorCode.DATA_NOT_EXIST);
     return data;
     return data;
   }
   }
   async create(body) {
   async create(body) {