We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9602b3 commit 93f7076Copy full SHA for 93f7076
Modules/Synchronization/src/Synchronization.Application/SyncRuns/Commands/StartSyncRun/Handler.cs
@@ -133,7 +133,7 @@ private async Task<SyncRun> CreateNewSyncRun(IEnumerable<ExternalEvent> events)
133
}
134
catch (DbUpdateException ex)
135
{
136
- if (ex.HasReason(DbUpdateExceptionReason.DuplicateIndex))
+ if (ex.HasReason(DbUpdateExceptionReason.DuplicateIndex) || ex.HasReason(DbUpdateExceptionReason.UniqueKeyViolation))
137
throw new OperationFailedException(ApplicationErrors.SyncRuns.CannotStartSyncRunWhenAnotherSyncRunIsRunning());
138
139
throw;
0 commit comments