forked from ddrilling/AsbCloudServer
Убраны лишние юзинги
This commit is contained in:
parent
23cebdf5e7
commit
0c56a12d66
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user