diff --git a/back/services/cron.ts b/back/services/cron.ts index 152b6f82..7f9b9e67 100644 --- a/back/services/cron.ts +++ b/back/services/cron.ts @@ -352,6 +352,10 @@ export default class CronService { public async log(_id: string) { const doc = await this.get(_id); + if (!doc) { + return ''; + } + if (doc.log_path) { return getFileContentByName(`${doc.log_path}`); }