|
@@ -20,7 +20,8 @@ class PersonalService extends CrudService {
|
|
|
}
|
|
|
async query(condition, { skip = 0, limit = 0 }) {
|
|
|
const query = await this.dealQueryCondition(_.cloneDeep(condition));
|
|
|
- const res = await this.model.find(query).skip(parseInt(skip)).limit(parseInt(limit).sort({'meta.createdAt':-1})
|
|
|
+ const res = await this.model.find(query).skip(parseInt(skip)).limit(parseInt(limit))
|
|
|
+ .sort({ 'meta.createdAt': -1 });
|
|
|
return res;
|
|
|
}
|
|
|
async count(condition) {
|