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