소스 검색

修改:进度更新参数

lrf 3 년 전
부모
커밋
ae449a94b1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/service/mission.js

+ 2 - 2
app/service/mission.js

@@ -75,9 +75,9 @@ class MissionService extends CrudService {
   }
 
   async updateProgress(data) {
-    const { id, progress, status = '1', remark } = data;
+    const { id, progress, status = '1', ...others } = data;
     if (id && progress) {
-      await this.model.updateOne({ _id: ObjectId(id) }, { progress, status, remark });
+      await this.model.updateOne({ _id: ObjectId(id) }, { progress, status, ...others });
       this.toMq({ id });
     }
   }