Browse Source
Merge pull request #12958 from dashevchenko/ignoreNullVersion
Ignore null version
pull/12957/head
Viacheslav Klimov
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
1 deletions
-
dao/src/main/java/org/thingsboard/server/dao/timeseries/BaseTimeseriesService.java
|
|
|
@ -195,7 +195,9 @@ public class BaseTimeseriesService implements TimeseriesService { |
|
|
|
} |
|
|
|
if (saveLatest) { |
|
|
|
latestFutures.add(Futures.transform(timeseriesLatestDao.saveLatest(tenantId, entityId, tsKvEntry), version -> { |
|
|
|
edqsService.onUpdate(tenantId, ObjectType.LATEST_TS_KV, new LatestTsKv(entityId, tsKvEntry, version)); |
|
|
|
if (version != null) { |
|
|
|
edqsService.onUpdate(tenantId, ObjectType.LATEST_TS_KV, new LatestTsKv(entityId, tsKvEntry, version)); |
|
|
|
} |
|
|
|
return version; |
|
|
|
}, MoreExecutors.directExecutor())); |
|
|
|
} |
|
|
|
|