fix: Kompetenzkataloge im Sync nachreichen

This commit is contained in:
admin committed 2026-09-20 00:03:45 +02:00
1 parent 0f2a25feb5
commit 22eceb3ac1
7 files changed
+188 -4

No files matched your search

+6 -2
View File
@@ -375,8 +375,12 @@ public static class AppBootstrapper
// Sync-agnostischer Hook auf LiteDbContext (siehe LiteDbContext.OnChange) wird erst hier,
// außerhalb der Repository-Registrierung, mit der tatsächlichen Sync-Logik verbunden.
if (!string.IsNullOrEmpty(serverUrl))
provider.GetRequiredService<LiteDbContext>().OnChange =
provider.GetRequiredService<SyncEventPublisher>().Publish;
{
var context = provider.GetRequiredService<LiteDbContext>();
var publisher = provider.GetRequiredService<SyncEventPublisher>();
context.OnChange = publisher.Publish;
publisher.BackfillCompetencyCatalog(context);
}
return provider;
}