Browse Source

non-exiting data point should return 0 ts

pull/13081/head
dashevchenko 1 year ago
parent
commit
665bb03a1f
  1. 2
      common/edqs/src/main/java/org/thingsboard/server/edqs/util/RepositoryUtils.java

2
common/edqs/src/main/java/org/thingsboard/server/edqs/util/RepositoryUtils.java

@ -344,7 +344,7 @@ public class RepositoryUtils {
if (dp != null) { if (dp != null) {
return new TsValue(dp.getTs() > 0 ? dp.getTs() : ts, dp.valueToString()); return new TsValue(dp.getTs() > 0 ? dp.getTs() : ts, dp.valueToString());
} else { } else {
return new TsValue(ts, ""); return TsValue.EMPTY;
} }
} }

Loading…
Cancel
Save