Skip to content

Commit 7dac683

Browse files
committed
Fixing reporting worker lookup.
1 parent f999b00 commit 7dac683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eFormAPI/Plugins/BackendConfiguration.Pn/BackendConfiguration.Pn/Services/BackendConfigurationReportService/BackendConfigurationReportService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ await backendConfigurationPnDbContext.AreaRulePlannings.FirstOrDefaultAsync(x =>
749749

750750
var dbCase =
751751
await sdkDbContext.Cases.FirstOrDefaultAsync(x => x.Id == planningCase.MicrotingSdkCaseId);
752-
var workerId = sdkDbContext.SiteWorkers.First(x => x.Id == dbCase.SiteId).WorkerId;
752+
var workerId = sdkDbContext.SiteWorkers.First(x => x.SiteId == dbCase.SiteId).WorkerId;
753753
var worker = await sdkDbContext.Workers.FirstOrDefaultAsync(x => x.Id == workerId);
754754

755755
if (dbCase == null)

0 commit comments

Comments
 (0)