forwaded traccer device not present to addDevice

pull/21/head
Deenath Geeganage 2 years ago
parent 3ac643359f
commit a94bfc6940

@ -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