lrf 3 years ago
parent
commit
2aef4e205b
2 changed files with 2 additions and 2 deletions
  1. 2 1
      app/service/mission.js
  2. 0 1
      app/service/rabbitMq.js

+ 2 - 1
app/service/mission.js

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

+ 0 - 1
app/service/rabbitMq.js

@@ -58,7 +58,6 @@ class RabbitmqService extends Service {
     } catch (error) {
       this.ctx.logger.error('数据不是object');
     }
-    console.log(data);
     this.ctx.service.mission.updateProgress(data);
   }
 }