Ajoute les thèmes communs sur les fiches de livres
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot
parent
e28d5bce32
commit
c2d408afc6
@@ -89,6 +89,14 @@ public sealed class ServiceRenormalisation(MaBibliDbContext db, ILogger<ServiceR
|
||||
n => n.RecalculerFormes(),
|
||||
n => $"le numéro {n.Numero}");
|
||||
|
||||
var themes = await db.Themes.OrderBy(t => t.Id).ToListAsync(ct);
|
||||
corriges += Renormaliser(
|
||||
themes,
|
||||
t => t.NomNormalise,
|
||||
t => NormalisationTexte.Normaliser(t.Nom),
|
||||
t => t.RecalculerFormes(),
|
||||
t => $"le thème « {t.Nom} »");
|
||||
|
||||
if (corriges > 0)
|
||||
{
|
||||
await db.SaveChangesAsync(ct);
|
||||
|
||||
Reference in New Issue
Block a user