This commit is contained in:
Zeeshaun
2026-04-22 16:17:12 +00:00
parent d7bb3fb532
commit 146e9cd8ab
3 changed files with 9 additions and 5 deletions
@@ -145,6 +145,7 @@ public class JobRepository : BaseRepository, IJobRepository
public async Task<Job> Update(Job job)
{
var trackedJob = await _context.Jobs
.IncludeErrorRecipients()
.FirstAsync(j => j.JobId == job.JobId);
_context.Entry(trackedJob).CurrentValues.SetValues(job);
@@ -156,4 +157,4 @@ public class JobRepository : BaseRepository, IJobRepository
{
_context.Jobs.Remove(job);
}
}
}