diff --git a/back/services/cron.ts b/back/services/cron.ts index 1676274b..9b5a10cb 100644 --- a/back/services/cron.ts +++ b/back/services/cron.ts @@ -183,6 +183,7 @@ export default class CronService { this.cronDb.update( { _id: { $in: ids } }, { $set: { status: CrontabStatus.idle }, $unset: { pid: true } }, + { multi: true }, ); resolve(); });