From 4e92a19b90ca3791dd96683eff7dd8412ca8dbfe Mon Sep 17 00:00:00 2001 From: stephb9959 Date: Fri, 15 Dec 2023 08:19:01 -0800 Subject: [PATCH] https://telecominfraproject.atlassian.net/browse/WIFI-13200 Signed-off-by: stephb9959 --- src/storage/storage_inventory.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/storage/storage_inventory.cpp b/src/storage/storage_inventory.cpp index a38b3be..b9bfd09 100644 --- a/src/storage/storage_inventory.cpp +++ b/src/storage/storage_inventory.cpp @@ -236,7 +236,7 @@ namespace OpenWifi { bool InventoryDB::GetDevicesForVenue(const std::string &venue_uuid, std::vector &devices) { try { std::vector 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); } @@ -258,7 +258,7 @@ namespace OpenWifi { bool InventoryDB::GetDevicesUUIDForVenue(const std::string &venue_uuid, std::vector &devices) { try { std::vector 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); } @@ -279,7 +279,7 @@ namespace OpenWifi { bool InventoryDB::GetDevicesForVenue(const std::string &venue_uuid, std::vector &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;