From c7c30c86f29ae167678dee1e8fbfce75b9ec7e19 Mon Sep 17 00:00:00 2001 From: whyour Date: Mon, 4 Apr 2022 18:06:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=9B=AE=E5=BD=95=E8=8E=B7?= =?UTF-8?q?=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 50b8e56c..48d7f680 100644 --- a/back/services/cron.ts +++ b/back/services/cron.ts @@ -367,7 +367,7 @@ export default class CronService { return files .map((x) => ({ filename: x, - directory: relativeDir, + directory: relativeDir.replace(config.logPath, ''), time: fs.statSync(`${dir}/${x}`).mtime.getTime(), })) .sort((a, b) => b.time - a.time);