guhongwei 3 år sedan
förälder
incheckning
b5d5ba34ec
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      app/service/users/personal.js

+ 2 - 2
app/service/users/personal.js

@@ -20,8 +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) {