forked from ddrilling/AsbCloudServer
bugfix: Замена .Any() на !.Any() там, где это необходимо
This commit is contained in:
parent
c2f1338785
commit
802fdd1015
@ -68,7 +68,7 @@ namespace AsbCloudInfrastructure.Services
|
||||
|
||||
public void UpdateData(string uid, IEnumerable<DataSaubBaseDto> dtos)
|
||||
{
|
||||
if (dtos == default || dtos.Any())
|
||||
if (dtos == default || !dtos.Any())
|
||||
return;
|
||||
|
||||
var telemetryId = telemetryService.GetOrCreateTemetryIdByUid(uid);
|
||||
|
@ -35,7 +35,7 @@ namespace AsbCloudInfrastructure.Services
|
||||
|
||||
var events = cacheEvents.Select(e => e.IdTelemetry == telemetry.Id);
|
||||
|
||||
if (events.Any())
|
||||
if (!events.Any())
|
||||
return null;
|
||||
|
||||
var messages = from m in db.Messages
|
||||
@ -111,7 +111,7 @@ namespace AsbCloudInfrastructure.Services
|
||||
|
||||
public void Insert(string uid, IEnumerable<TelemetryMessageDto> dtos)
|
||||
{
|
||||
if (dtos.Any())
|
||||
if (!dtos.Any())
|
||||
return;
|
||||
|
||||
var telemetryId = telemetryService.GetOrCreateTemetryIdByUid(uid);
|
||||
|
Loading…
Reference in New Issue
Block a user