Commit 82bdb6acf158863c928762da1c62feb56b11a700

Authored by Kalutka Zhenya
1 parent b8a3b8ae

Refactoring

... ... @@ -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));
... ...