ruifeng_liu 4 năm trước cách đây
mục cha
commit
ef418706a4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);
     }