From 11ec1041c788fa38be2b529384c186e11bf62334 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 22 Nov 2025 03:42:37 +0000 Subject: [PATCH] Fix uniqPath calculation in runSingle for null log_name Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- 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 1fa8e6c0..8ed21ddd 100644 --- a/back/services/cron.ts +++ b/back/services/cron.ts @@ -509,7 +509,7 @@ export default class CronService { const uniqPath = log_name === '/dev/null' ? await getUniqPath(command, `${id}`) - : log_name; + : log_name || (await getUniqPath(command, `${id}`)); const logTime = dayjs().format('YYYY-MM-DD-HH-mm-ss-SSS'); const logDirPath = path.resolve(config.logPath, `${uniqPath}`); await fs.mkdir(logDirPath, { recursive: true });