diff --git a/Server/Program.cs b/Server/Program.cs index 7b32e902d..ae20299e0 100644 --- a/Server/Program.cs +++ b/Server/Program.cs @@ -294,7 +294,7 @@ } await dataService.SetAllDevicesNotOnline(); - dataService.CleanupOldRecords(); + await dataService.CleanupOldRecords(); } await app.RunAsync();