Browse Source

minor proto fix

pull/9851/head
YevhenBondarenko 2 years ago
parent
commit
ec19c2a718
  1. 2
      common/proto/src/main/java/org/thingsboard/server/common/util/ProtoUtils.java

2
common/proto/src/main/java/org/thingsboard/server/common/util/ProtoUtils.java

@ -877,7 +877,7 @@ public class ProtoUtils {
.setApiUsageStateIdMSB(getMsb(apiUsageState.getId()))
.setApiUsageStateIdLSB(getLsb(apiUsageState.getId()))
.setCreatedTime(apiUsageState.getCreatedTime())
.setEntityType(TransportProtos.EntityTypeProto.forNumber(apiUsageState.getEntityId().getEntityType().ordinal()))
.setEntityType(toProto(apiUsageState.getEntityId().getEntityType()))
.setEntityIdMSB(getMsb(apiUsageState.getEntityId()))
.setEntityIdLSB(getLsb(apiUsageState.getEntityId()))
.setTransportState(apiUsageState.getTransportState().name())

Loading…
Cancel
Save