Merge branch 'feature/net_core_8.0' into dev

This commit is contained in:
ngfrolov 2024-02-27 14:07:26 +05:00
commit ad3fef064a
Signed by: ng.frolov
GPG Key ID: E99907A0357B29A7

View File

@ -204,7 +204,7 @@ public class ReportService : IReportService
public async Task<int> 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)