mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-10-29 17:52:28 +00:00
Adding proper serial number cache for quick search
This commit is contained in:
@@ -181,14 +181,16 @@ namespace OpenWifi {
|
||||
ProvObjects::InventoryTag T;
|
||||
if(InventoryDB().GetRecord("id", device, T)) {
|
||||
NewDevices.emplace_back(device);
|
||||
} else {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if(NewDevices!=V.devices) {
|
||||
std::cout << "Fixing venue: " << V.info.name << std::endl;
|
||||
// ProvObjects::Venue NewVenue = V;
|
||||
// NewVenue.devices = NewDevices;
|
||||
// VenueDB().UpdateRecord("id", V.info.id, NewVenue);
|
||||
ProvObjects::Venue NewVenue = V;
|
||||
NewVenue.devices = NewDevices;
|
||||
VenueDB().UpdateRecord("id", V.info.id, NewVenue);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user