diff --git a/back/services/cron.ts b/back/services/cron.ts index f6d76865..b866a4ba 100644 --- a/back/services/cron.ts +++ b/back/services/cron.ts @@ -241,7 +241,7 @@ export default class CronService { const [, commandStr, url] = doc.command.split(' '); let logPath = this.getKey(commandStr); const isQlCommand = doc.command.startsWith('ql '); - const key = this.getKey(url) || logPath; + const key = (url && this.getKey(url)) || logPath; if (isQlCommand) { logPath = 'update'; }