fix(efcore): adopt SaveChangesWithRetryAsync across all infrastructure services
This commit is contained in:
1 parent
8dedee5d86
commit
892ca88de8
14 files changed
+45
-45
No files matched your search
@@ -247,7 +247,7 @@ using var seedScope = app.Services.CreateScope();
|
||||
}));
|
||||
}
|
||||
}
|
||||
await groupDb.SaveChangesAsync();
|
||||
await groupDb.SaveChangesWithRetryAsync();
|
||||
|
||||
// Seed demo admin in Development (NOT Testing — tests create their own users)
|
||||
if (app.Environment.IsDevelopment())
|
||||
@@ -271,7 +271,7 @@ using var seedScope = app.Services.CreateScope();
|
||||
{
|
||||
demoSite = new Heimdall.Domain.Entities.Site("Site Démo", "Paris", "Europe/Paris");
|
||||
demoDb.Sites.Add(demoSite);
|
||||
await demoDb.SaveChangesAsync();
|
||||
await demoDb.SaveChangesWithRetryAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user