diff --git a/api/src/cronjobs.js b/api/src/cronjobs.js index 1674f1ef..7774b955 100644 --- a/api/src/cronjobs.js +++ b/api/src/cronjobs.js @@ -16,7 +16,7 @@ const launchCronJob = async (name, job) => { } try { - job(); + await job(); } catch (e) { capture(e, { level: "error", extra: { name } }); }