guhongwei %!s(int64=3) %!d(string=hai) anos
pai
achega
b68e2cd6c9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/service/patent/patentchat.js

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

@@ -13,7 +13,7 @@ class PatentchatService extends CrudService {
     this.model = this.ctx.model.Patent.Patentchat;
   }
 
-  async query({ id, is_read }, { skip = 0, limit = 0 } = {}) {
+  async query({ id }, { skip = 0, limit = 0, is_read } = {}) {
     assert(id, '缺少用户信息');
     const data = await this.model.find({ $or: [{ sender_id: id }, { receiver_id: id }, { is_read }] }).sort({ 'meta.createdAt': 1 }).skip(parseInt(skip))
       .limit(parseInt(limit));