浏览代码

更新total

reloaded 5 年之前
父节点
当前提交
36b49c927e
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 };