mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-02 19:48:03 +00:00
Adding locations for venue.
This commit is contained in:
@@ -238,6 +238,13 @@ namespace OpenWifi{
|
||||
Existing.deviceConfiguration = MoveToConfigurations;
|
||||
}
|
||||
|
||||
std::string ErrorText;
|
||||
auto ObjectsToCreate = CreateObjects(NewObject, *this, ErrorText);
|
||||
|
||||
if(!ErrorText.empty()) {
|
||||
return BadRequest(ErrorText);
|
||||
}
|
||||
|
||||
if(StorageService()->VenueDB().UpdateRecord("id", UUID, Existing)) {
|
||||
MoveUsage(StorageService()->ContactDB(),DB_,MoveFromContacts, MoveToContacts, Existing.info.id);
|
||||
MoveUsage(StorageService()->LocationDB(),DB_,MoveFromLocation, MoveToLocation, Existing.info.id);
|
||||
|
||||
Reference in New Issue
Block a user