Browse Source

修改:进度更新参数

lrf 3 years ago
parent
commit
ae449a94b1
1 changed files with 2 additions and 2 deletions
  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 });
     }
   }