From 428d6e13d1bb7b590f6746f05ef46d109365af5b Mon Sep 17 00:00:00 2001 From: Glax Date: Thu, 12 Dec 2024 22:41:28 +0100 Subject: [PATCH] Fix UpdateJobFile with oldFile: oldFilePath was fullname, not relative --- Tranga/Jobs/JobBoss.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tranga/Jobs/JobBoss.cs b/Tranga/Jobs/JobBoss.cs index 781b978..b1b38dd 100644 --- a/Tranga/Jobs/JobBoss.cs +++ b/Tranga/Jobs/JobBoss.cs @@ -197,7 +197,7 @@ public class JobBoss : GlobalBase internal void UpdateJobFile(Job job, string? oldFile = null) { string newJobFilePath = Path.Join(TrangaSettings.jobsFolderPath, $"{job.id}.json"); - string oldFilePath = Path.Join(TrangaSettings.jobsFolderPath, oldFile??$"{job.id}.json"); + string oldFilePath = oldFile??Path.Join(TrangaSettings.jobsFolderPath, $"{job.id}.json"); //Delete old file if (File.Exists(oldFilePath))