lrf402788946 před 4 roky
rodič
revize
15828280ca
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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();
       for (const school of schoolList) {
         const r = await this.schmodel.find({ year, planid: id, schid: school.code });
+        console.log(r);
         if (r) continue;
         const obj = { schid: school.code, year, planid: id };
         await this.schmodel.create(obj);