|
|
@ -183,14 +183,14 @@ export class MapWidgetController implements MapWidgetInterface { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
if (attributes.length) { |
|
|
if (timeseries.length) { |
|
|
attributeService.saveEntityTimeseries( |
|
|
attributeService.saveEntityTimeseries( |
|
|
entityId, |
|
|
entityId, |
|
|
LatestTelemetry.LATEST_TELEMETRY, |
|
|
LatestTelemetry.LATEST_TELEMETRY, |
|
|
timeseries |
|
|
timeseries |
|
|
).subscribe(() => { }); |
|
|
).subscribe(() => { }); |
|
|
} |
|
|
} |
|
|
if (timeseries.length) { |
|
|
if (attributes.length) { |
|
|
attributeService.saveEntityAttributes( |
|
|
attributeService.saveEntityAttributes( |
|
|
entityId, |
|
|
entityId, |
|
|
AttributeScope.SERVER_SCOPE, |
|
|
AttributeScope.SERVER_SCOPE, |
|
|
|