Enhance management cockpit analysis

This commit is contained in:
2026-04-29 07:00:29 +02:00
parent 49c03b9673
commit 3ac03a4782
15 changed files with 2651 additions and 384 deletions
@@ -26,7 +26,9 @@ public class TimerBackgroundService : BackgroundService
{
var dbFactory = _serviceProvider.GetRequiredService<IDbContextFactory<AppDbContext>>();
using var db = await dbFactory.CreateDbContextAsync();
var settings = await db.ExportSettings.FirstOrDefaultAsync();
var settings = await db.ExportSettings
.OrderBy(x => x.Id)
.FirstOrDefaultAsync();
if (settings is null || !settings.TimerEnabled)
{