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