From 103065c1a4597767e36ff182e9a1e9bd7ecd3c59 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 22 Nov 2025 03:09:44 +0000 Subject: [PATCH] Fix null log_name handling in runSingle method 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 ad08998c..03c98bdb 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 });