Skip to content

Commit

Permalink
https://telecominfraproject.atlassian.net/browse/WIFI-13200
Browse files Browse the repository at this point in the history
Signed-off-by: stephb9959 <[email protected]>
  • Loading branch information
stephb9959 committed Dec 15, 2023
1 parent 713b995 commit 4e92a19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/storage/storage_inventory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ namespace OpenWifi {
bool InventoryDB::GetDevicesForVenue(const std::string &venue_uuid, std::vector<std::string> &devices) {
try {
std::vector<ProvObjects::InventoryTag> device_list;
if(GetRecords(1, 1000, device_list, fmt::format(" venue='{}' ", venue_uuid))) {
if(GetRecords(0, 1000, device_list, fmt::format(" venue='{}' ", venue_uuid))) {
for(auto &i:device_list) {
devices.push_back(i.serialNumber);
}
Expand All @@ -258,7 +258,7 @@ namespace OpenWifi {
bool InventoryDB::GetDevicesUUIDForVenue(const std::string &venue_uuid, std::vector<std::string> &devices) {
try {
std::vector<ProvObjects::InventoryTag> device_list;
if(GetRecords(1, 1000, device_list, fmt::format(" venue='{}' ", venue_uuid))) {
if(GetRecords(0, 1000, device_list, fmt::format(" venue='{}' ", venue_uuid))) {
for(auto &i:device_list) {
devices.push_back(i.info.id);
}
Expand All @@ -279,7 +279,7 @@ namespace OpenWifi {

bool InventoryDB::GetDevicesForVenue(const std::string &venue_uuid, std::vector<ProvObjects::InventoryTag> &devices) {
try {
return GetRecords(1, 1000, devices, fmt::format(" venue='{}' ", venue_uuid));
return GetRecords(0, 1000, devices, fmt::format(" venue='{}' ", venue_uuid));
} catch(const Poco::Exception &E) {
Logger().log(E);
return false;
Expand Down

0 comments on commit 4e92a19

Please sign in to comment.