Browse Source

Refactoring

pull/5026/head
Kalutka Zhenya 5 years ago
parent
commit
82bdb6acf1
  1. 4
      ui-ngx/src/app/core/http/attribute.service.ts

4
ui-ngx/src/app/core/http/attribute.service.ts

@ -54,10 +54,10 @@ export class AttributeService {
const keys = timeseries.map(attribute => encodeURI(attribute.key)).join(',');
let url = `/api/plugins/telemetry/${entityId.entityType}/${entityId.id}/timeseries/delete` +
`?keys=${keys}&deleteAllDataForKeys=${deleteAllDataForKeys}`;
if (startTs) {
if (isDefinedAndNotNull(startTs)) {
url += `&startTs=${startTs}`;
}
if (endTs) {
if (isDefinedAndNotNull(endTs)) {
url += `&endTs=${endTs}`;
}
return this.http.delete(url, defaultHttpOptionsFromConfig(config));

Loading…
Cancel
Save