ruifeng_liu 3 years ago
parent
commit
ebc1c74303
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/patent/patentchat.js

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

@@ -15,7 +15,7 @@ class PatentchatService extends CrudService {
 
   async query({ id }) {
     assert(id, '缺少用户信息');
-    const data = await this.model.find({ $or: [{ sender_id: id }, { receiver_id: id }] }).sort({ 'meta.createdAt': -1 });
+    const data = await this.model.find({ $or: [{ sender_id: id }, { receiver_id: id }] }).sort({ 'meta.createdAt': 1 });
     return data;
   }
   async count({ id }) {