瀏覽代碼

修改:进度更新参数

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 });
     }
   }