From 54dd82dc77c593848a9fb9c8786534367e211843 Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Fri, 25 Jun 2021 15:58:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=BF=97=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/cron.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; }