Откат лишнего кода

This commit is contained in:
Olga Nemt 2024-03-14 14:58:09 +05:00
parent 8b761779fd
commit 6cd42a546c

View File

@ -34,7 +34,7 @@ namespace AsbCloudInfrastructure.Background.PeriodicWorks
var cacheRequest = new TelemetryDataRequest()
{
GeDate = DateTime.UtcNow.AddDays(-100)
GeDate = DateTime.UtcNow.AddDays(-Gap)
};
var idTelemetries = telemetryDataCache.GetIds(cacheRequest).ToArray();
@ -49,10 +49,6 @@ namespace AsbCloudInfrastructure.Background.PeriodicWorks
for( var i =0; i < idTelemetries.Length; i++)
{
var idTelemetry = idTelemetries[i];
if(idTelemetry == 783)
{
;
}
var lastDate = stats.FirstOrDefault(s => s.IdTelemetry == idTelemetry)?.DateEnd.ToUniversalTime() ?? DateTimeOffset.UnixEpoch;
var statsCount = await CreateStatForTelemetryFromDate(idTelemetry, lastDate, dataSaubService, dataSaubStatRepo, detectedOperationRepository, token);
onProgressCallback($"Calculate stat for telemetry: {idTelemetry}; from {lastDate}; results count: {statsCount};", 100*i / idTelemetries.Length);