fix(events): query duplicate retries through context interface
Heimdall Gitea / Build and tests (pull_request) Failing after 1s
Heimdall Gitea / Publish versioned release (pull_request) Skipped

This commit is contained in:
Arnaud Dartois committed 2026-10-22 19:31:28 +02:00
1 parent 21842bdf09
commit 8fafbdfaec
1 file changed
-1
@@ -49,7 +49,6 @@ public class CreateEventHandler : IRequestHandler<CreateEventCommand, ServiceRes
}
catch (DbUpdateException) when (request.EventId.HasValue)
{
_context.Entry(ev).State = EntityState.Detached;
var duplicate = await _context.CameraEvents.AsNoTracking().Include(e => e.Camera)
.FirstOrDefaultAsync(e => e.Id == eventId && e.OccurredAt == occurredAt, ct)
.ConfigureAwait(false);