From ecb035d0b4bf5f3a0e06bed73277cb7b59b583a8 Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Sat, 26 Jun 2021 23:08:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4=E6=97=A5?= =?UTF-8?q?=E5=BF=97log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/cron.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/back/services/cron.ts b/back/services/cron.ts index b866a4ba..8adcfa5a 100644 --- a/back/services/cron.ts +++ b/back/services/cron.ts @@ -241,7 +241,9 @@ export default class CronService { const [, commandStr, url] = doc.command.split(' '); let logPath = this.getKey(commandStr); const isQlCommand = doc.command.startsWith('ql '); - const key = (url && this.getKey(url)) || logPath; + const key = + (url && ['repo', 'raw'].includes(commandStr) && this.getKey(url)) || + logPath; if (isQlCommand) { logPath = 'update'; }