mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-01 19:17:47 +00:00
Adding locations for venue.
This commit is contained in:
@@ -239,12 +239,13 @@ namespace OpenWifi {
|
||||
inline void GetLocationsForVenue(const std::string &ID, std::vector<triplet_t> & IDs) {
|
||||
ProvObjects::Venue Existing;
|
||||
if(StorageService()->VenueDB().template GetRecord("id",ID,Existing)) {
|
||||
if(!Existing.location.empty()) {
|
||||
AddLocationTriplet(Existing.location,IDs);
|
||||
}
|
||||
if(!Existing.parent.empty()) {
|
||||
GetLocationsForVenue(Existing.parent,IDs);
|
||||
}
|
||||
ProvObjects::Entity E;
|
||||
if(StorageService()->EntityDB().GetRecord("id", Existing.entity, E)) {
|
||||
AddLocationTriplet(E.locations,IDs);
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user