ruifeng_liu %!s(int64=3) %!d(string=hai) anos
pai
achega
ebc1c74303
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

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