lrf hace 3 años
padre
commit
4e14f28a2a
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/service/mission.js

+ 2 - 2
app/service/mission.js

@@ -68,10 +68,10 @@ class MissionService extends CrudService {
       );
     } catch (error) {
       console.error(error.toString());
-      await this.updateOne({ id }, { status: '3' });
+      await this.model.updateOne({ id }, { status: '3' });
       throw new BusinessError(ErrorCode.SERVICE_FAULT, '执行任务失败');
     }
-    await this.updateOne({ id }, { status: '1', progress: undefined });
+    await this.model.updateOne({ id }, { status: '1', progress: undefined });
   }
 
   async updateProgress({ id, progress, status = '1', remark }) {