Commit 2ce709e363894dbcff33a6efefc5c142506369be
1 parent
c4276ae4
Fix create device notification in DefaultTransportApiService
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -266,7 +266,7 @@ public class DefaultTransportApiService implements TransportApiService { |
266 | 266 | DeviceProfile deviceProfile = deviceProfileCache.findOrCreateDeviceProfile(gateway.getTenantId(), requestMsg.getDeviceType()); |
267 | 267 | device.setDeviceProfileId(deviceProfile.getId()); |
268 | 268 | Device savedDevice = deviceService.saveDevice(device); |
269 | - tbClusterService.onDeviceUpdated(savedDevice, device); | |
269 | + tbClusterService.onDeviceUpdated(savedDevice, null); | |
270 | 270 | device = savedDevice; |
271 | 271 | |
272 | 272 | relationService.saveRelationAsync(TenantId.SYS_TENANT_ID, new EntityRelation(gateway.getId(), device.getId(), "Created")); | ... | ... |