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));