修复删除日志log

This commit is contained in:
hanhh 2021-06-26 23:08:38 +08:00
parent b78b382ba1
commit ecb035d0b4

View File

@ -241,7 +241,9 @@ export default class CronService {
const [, commandStr, url] = doc.command.split(' '); const [, commandStr, url] = doc.command.split(' ');
let logPath = this.getKey(commandStr); let logPath = this.getKey(commandStr);
const isQlCommand = doc.command.startsWith('ql '); 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) { if (isQlCommand) {
logPath = 'update'; logPath = 'update';
} }