guhongwei 2 년 전
부모
커밋
4013a95bae
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/service/system/platformAct.js

+ 1 - 1
app/service/system/platformAct.js

@@ -19,7 +19,7 @@ class PlatformActService extends CrudService {
     const { populate } = this.getRefMods();
     // 带ref查询
     let rs = await this.model
-      .find(condition, projection, { skip, limit, sort: { sort: 1, 'meta.createdAt': -1 } })
+      .find(condition, projection, { skip, limit, sort: { sort: -1, 'meta.createdAt': -1 } })
       .populate(populate)
       .exec();
     rs = JSON.parse(JSON.stringify(rs));