Fix TelemetryDataSaubService.GetTelemetryDataStatAsync(). increase db command timeout.

This commit is contained in:
ngfrolov 2023-12-26 09:21:36 +05:00
parent 24bbbfc348
commit b8b55c334a
Signed by: ng.frolov
GPG Key ID: E99907A0357B29A7

View File

@ -39,6 +39,8 @@ namespace AsbCloudInfrastructure.Services.SAUB
var timezoneOffset = TimeSpan.FromHours(timezone.Hours);
int[] modes = new int[] { 0, 1, 3 };
db.Database.SetCommandTimeout(TimeSpan.FromMinutes(1.5));
var query = db.Set<TelemetryDataSaub>()
.Where(t => t.IdTelemetry == idTelemetry)
.Where(t => t.BlockPosition > 0.0001)