Merge pull request 'forwaded traccer device not present to addDevice' (#7) from traccar_consistency_issue into master

Reviewed-on: deenath/device-mgt-core#7
pull/21/head
Deenath Geeganage 2 years ago
commit e53d6980cb

@ -509,9 +509,12 @@ public class TraccarClientFactory {
}
}else {
// forward to add device
String msg = "Tracker device for device id " + traccarDevice.getId() + " not found in local database";
log.error(msg);
throw new TrackerManagementDAOException(msg);
try {
addDevice(traccarDevice,tenantId);
} catch (TrackerAlreadyExistException e) {
String msg = "The device already exist";
log.error(msg, e);
}
}
}

Loading…
Cancel
Save