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

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

@@ -43,7 +43,7 @@ class PatentchatService extends CrudService {
     const rData = [];
     for (const key in obj) {
       let arr = obj[key];
-      arr = _.orderBy(arr, [ 'send_time' ], [ 'desc' ]);
+      arr = _.orderBy(arr, [ 'meta.createdAt' ], [ 'desc' ]);
       const head = _.head(arr);
       rData.push(head);
     }