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