lrf402788946 4 년 전
부모
커밋
15828280ca
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/service/trainplan.js

+ 1 - 0
app/service/trainplan.js

@@ -128,6 +128,7 @@ class TrainplanService extends CrudService {
       const schoolList = await this.smodel.find();
       const schoolList = await this.smodel.find();
       for (const school of schoolList) {
       for (const school of schoolList) {
         const r = await this.schmodel.find({ year, planid: id, schid: school.code });
         const r = await this.schmodel.find({ year, planid: id, schid: school.code });
+        console.log(r);
         if (r) continue;
         if (r) continue;
         const obj = { schid: school.code, year, planid: id };
         const obj = { schid: school.code, year, planid: id };
         await this.schmodel.create(obj);
         await this.schmodel.create(obj);