Browse Source

更新total

reloaded 5 years ago
parent
commit
36b49c927e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/student.js

+ 1 - 1
app/service/student.js

@@ -15,7 +15,7 @@ class StudentService extends CrudService {
 
   // 查询
   async seek({ termid, skip, limit }) {
-    const students = await this.model.find({ termid, classid: null })
+    const students = await this.model.find({ termid, classid: null });
     const data = await this.model.find({ termid, classid: null }).skip(Number(skip)).limit(Number(limit));
     const total = await students.length;
     const result = { total, data };