fix(efcore): adopt SaveChangesWithRetryAsync across all infrastructure services

This commit is contained in:
Arnaud Dartois committed 2026-07-20 10:15:39 +00:00
1 parent 8dedee5d86
commit 892ca88de8
14 files changed
+45 -45

No files matched your search

+2 -2
View File
@@ -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();
}
}
}