liuyu 5 년 전
부모
커밋
542cfbd08d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
       }