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 df27a3c commit 3066e05Copy full SHA for 3066e05
src/providers/WorkflowCore.Persistence.MongoDB/Services/MongoPersistenceProvider.cs
@@ -315,9 +315,9 @@ public async Task ScheduleCommand(ScheduledCommand command)
315
{
316
await ScheduledCommands.InsertOneAsync(command);
317
}
318
- catch (MongoBulkWriteException ex)
+ catch (MongoWriteException ex)
319
320
- if (ex.WriteErrors.All(x => x.Category == ServerErrorCategory.DuplicateKey))
+ if (ex.WriteError?.Category == ServerErrorCategory.DuplicateKey)
321
return;
322
throw;
323
0 commit comments