From f7654a95b618a0d1c8d1f3bdf1b3c43b673c5ec0 Mon Sep 17 00:00:00 2001 From: ngfrolov Date: Thu, 19 Jan 2023 12:05:47 +0500 Subject: [PATCH] fix TelemetryWirelineRunOutController.PostData. It`s async. --- .../Controllers/SAUB/TelemetryWirelineRunOutController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AsbCloudWebApi/Controllers/SAUB/TelemetryWirelineRunOutController.cs b/AsbCloudWebApi/Controllers/SAUB/TelemetryWirelineRunOutController.cs index 878d634b..8944a1c0 100644 --- a/AsbCloudWebApi/Controllers/SAUB/TelemetryWirelineRunOutController.cs +++ b/AsbCloudWebApi/Controllers/SAUB/TelemetryWirelineRunOutController.cs @@ -48,12 +48,12 @@ namespace AsbCloudWebApi.Controllers.SAUB [HttpPost] [Route("{uid}")] [AllowAnonymous] - public IActionResult PostData(string uid, [FromBody] TelemetryWirelineRunOutBaseDto dto, CancellationToken token) + public async Task PostDataAsync(string uid, [FromBody] TelemetryWirelineRunOutBaseDto dto, CancellationToken token) { if (dto is null) return BadRequest("Dto shouldn't be null"); - var data = repository.AddOrUpdateAsync(uid, dto, token); + var data = await repository.AddOrUpdateAsync(uid, dto, token); var idWell = telemetryService.GetIdWellByTelemetryUid(uid); if (idWell is not null)