|
@@ -19,7 +19,7 @@ class PlatformActService extends CrudService {
|
|
const { populate } = this.getRefMods();
|
|
const { populate } = this.getRefMods();
|
|
// 带ref查询
|
|
// 带ref查询
|
|
let rs = await this.model
|
|
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)
|
|
.populate(populate)
|
|
.exec();
|
|
.exec();
|
|
rs = JSON.parse(JSON.stringify(rs));
|
|
rs = JSON.parse(JSON.stringify(rs));
|