liuyu 4 years ago
parent
commit
542cfbd08d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/job.js

+ 1 - 1
app/service/job.js

@@ -22,7 +22,7 @@ class JobService extends CrudService {
     job.isstore = data.isstore;
     const res = await job.save();
     if (res && data.isstore === '1') {
-      const studatas = job.studs;
+      const studatas = JSON.parse(job.studs);
       for (const stu of studatas) {
         await this.smodel.create(stu);
       }