Browse Source

fixed TbEntitySubEventCallbackProto build

pull/11501/head
YevhenBondarenko 2 years ago
parent
commit
b26bf1410c
  1. 4
      application/src/main/java/org/thingsboard/server/service/subscription/TbSubscriptionUtils.java

4
application/src/main/java/org/thingsboard/server/service/subscription/TbSubscriptionUtils.java

@ -85,9 +85,9 @@ public class TbSubscriptionUtils {
public static ToCoreNotificationMsg toProto(TenantId tenantId, UUID id, int seqNumber, TbEntityUpdatesInfo update) {
TransportProtos.TbEntitySubEventCallbackProto.Builder updateProto = TransportProtos.TbEntitySubEventCallbackProto.newBuilder()
.setEntityIdMSB(id.getMostSignificantBits())
.setEntityIdLSB(tenantId.getId().getLeastSignificantBits())
.setEntityIdLSB(id.getLeastSignificantBits())
.setTenantIdMSB(tenantId.getId().getMostSignificantBits())
.setTenantIdLSB(id.getLeastSignificantBits())
.setTenantIdLSB(tenantId.getId().getLeastSignificantBits())
.setSeqNumber(seqNumber)
.setAttributesUpdateTs(update.attributesUpdateTs)
.setTimeSeriesUpdateTs(update.timeSeriesUpdateTs);

Loading…
Cancel
Save