From c0f2bedd61ddbe32861e22d055007c45820b8638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=82=D0=B5=D0=BF=D0=B0=D0=BD=D0=BE=D0=B2=20=D0=94?= =?UTF-8?q?=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Tue, 27 Feb 2024 09:36:00 +0300 Subject: [PATCH] fix --- AsbCloudInfrastructure/Services/ReportService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AsbCloudInfrastructure/Services/ReportService.cs b/AsbCloudInfrastructure/Services/ReportService.cs index 3b7199a9..fd7d86a3 100644 --- a/AsbCloudInfrastructure/Services/ReportService.cs +++ b/AsbCloudInfrastructure/Services/ReportService.cs @@ -204,7 +204,7 @@ public class ReportService : IReportService public async Task DeleteAllOldReportsAsync(TimeSpan lifetime, CancellationToken token) { - var lifeTimeStartDate = DateTime.UtcNow.Date - lifetime; + var lifeTimeStartDate = DateTimeOffset.UtcNow.Date - lifetime; var fileIds = await db.ReportProperties .Where(r => r.File.UploadDate.Date < lifeTimeStartDate) .Select(r => r.IdFile)