forked from ddrilling/AsbCloudServer
Merge branch 'feature/net_core_8.0' into dev
This commit is contained in:
commit
ad3fef064a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user