Убраны лишние юзинги

This commit is contained in:
Olga Nemt 2023-10-17 16:14:08 +05:00
parent 23cebdf5e7
commit 0c56a12d66

View File

@ -1,14 +1,10 @@
using AsbCloudApp.Data; using AsbCloudApp.Data.SAUB;
using AsbCloudApp.Data.GTR;
using AsbCloudApp.Data.SAUB;
using AsbCloudApp.Repositories; using AsbCloudApp.Repositories;
using AsbCloudApp.Services; using AsbCloudApp.Services;
using AsbCloudInfrastructure.Repository;
using AsbCloudWebApi.SignalR; using AsbCloudWebApi.SignalR;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.SignalR; using Microsoft.AspNetCore.SignalR;
using System; using System;
using System.Collections.Generic;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -54,7 +50,7 @@ namespace AsbCloudWebApi.Controllers.SAUB
CancellationToken token) CancellationToken token)
{ {
var telemetry = telemetryService.GetOrCreateTelemetryByUid(uid); var telemetry = telemetryService.GetOrCreateTelemetryByUid(uid);
if(telemetry is null) if (telemetry is null)
throw new Exception($"Telemetry with RemoteUid: {uid} does not exist."); throw new Exception($"Telemetry with RemoteUid: {uid} does not exist.");
await drillTestRepository.SaveDataAsync(telemetry.Id, dto, token); await drillTestRepository.SaveDataAsync(telemetry.Id, dto, token);