Fix UpdateJobFile with oldFile:

oldFilePath was fullname, not relative
This commit is contained in:
Glax 2024-12-12 22:41:28 +01:00
parent 1e6a65c0fd
commit 428d6e13d1

View File

@ -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))