Commit be3ff963d413dc5674a12919cc6e326166dff0cc

Authored by Andrii Shvaika
1 parent 51290e0b

Build fix

... ... @@ -28,6 +28,7 @@ import org.springframework.util.StringUtils;
28 28 import org.thingsboard.server.common.data.DataConstants;
29 29 import org.thingsboard.server.common.data.Device;
30 30 import org.thingsboard.server.common.data.Tenant;
  31 +import org.thingsboard.server.common.data.id.CustomerId;
31 32 import org.thingsboard.server.common.data.id.DeviceId;
32 33 import org.thingsboard.server.common.data.id.TenantId;
33 34 import org.thingsboard.server.common.data.relation.EntityRelation;
... ... @@ -139,6 +140,7 @@ public class DefaultTransportApiService implements TransportApiService {
139 140 deviceStateService.onDeviceAdded(device);
140 141
141 142 TbMsgMetaData metaData = new TbMsgMetaData();
  143 + CustomerId customerId = gateway.getCustomerId();
142 144 if (customerId != null && !customerId.isNullUid()) {
143 145 metaData.putValue("customerId", customerId.toString());
144 146 }
... ...