Showing
1 changed file
with
2 additions
and
2 deletions
@@ -54,10 +54,10 @@ export class AttributeService { | @@ -54,10 +54,10 @@ export class AttributeService { | ||
54 | const keys = timeseries.map(attribute => encodeURI(attribute.key)).join(','); | 54 | const keys = timeseries.map(attribute => encodeURI(attribute.key)).join(','); |
55 | let url = `/api/plugins/telemetry/${entityId.entityType}/${entityId.id}/timeseries/delete` + | 55 | let url = `/api/plugins/telemetry/${entityId.entityType}/${entityId.id}/timeseries/delete` + |
56 | `?keys=${keys}&deleteAllDataForKeys=${deleteAllDataForKeys}`; | 56 | `?keys=${keys}&deleteAllDataForKeys=${deleteAllDataForKeys}`; |
57 | - if (startTs) { | 57 | + if (isDefinedAndNotNull(startTs)) { |
58 | url += `&startTs=${startTs}`; | 58 | url += `&startTs=${startTs}`; |
59 | } | 59 | } |
60 | - if (endTs) { | 60 | + if (isDefinedAndNotNull(endTs)) { |
61 | url += `&endTs=${endTs}`; | 61 | url += `&endTs=${endTs}`; |
62 | } | 62 | } |
63 | return this.http.delete(url, defaultHttpOptionsFromConfig(config)); | 63 | return this.http.delete(url, defaultHttpOptionsFromConfig(config)); |