|
|
|
@ -491,9 +491,9 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
boolean status = deviceManager.modifyEnrollment(device);
|
|
|
|
|
int tenantId = this.getTenantId();
|
|
|
|
|
Device currentDevice = this.getDevice(deviceIdentifier, false);
|
|
|
|
|
try {
|
|
|
|
|
int tenantId = this.getTenantId();
|
|
|
|
|
Device currentDevice = this.getDevice(deviceIdentifier, false);
|
|
|
|
|
DeviceManagementDAOFactory.beginTransaction();
|
|
|
|
|
device.setId(currentDevice.getId());
|
|
|
|
|
if (device.getEnrolmentInfo().getId() == 0) {
|
|
|
|
@ -530,7 +530,6 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
|
|
|
|
|
//enroll Traccar device
|
|
|
|
|
if (HttpReportingUtil.isTrackerEnabled()) {
|
|
|
|
|
try {
|
|
|
|
|
int tenantId = this.getTenantId();
|
|
|
|
|
DeviceManagementDataHolder.getInstance().getDeviceAPIClientService().modifyDevice(device, tenantId);
|
|
|
|
|
} catch (ExecutionException e) {
|
|
|
|
|
log.error("ExecutionException : " + e);
|
|
|
|
|