mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-01 02:58:00 +00:00
Fixing Database updates limit/offset
This commit is contained in:
@@ -83,6 +83,14 @@ namespace OpenWifi{
|
||||
} else if(QB_.CountOnly) {
|
||||
auto C = StorageService()->InventoryDB().Count();
|
||||
return ReturnCountOnly(C);
|
||||
} else if (GetBoolParameter("rrmOnly",false)) {
|
||||
Types::UUIDvec_t DeviceList;
|
||||
StorageService()->InventoryDB().GetRRMDeviceList(DeviceList);
|
||||
if(QB_.CountOnly)
|
||||
return ReturnCountOnly(DeviceList.size());
|
||||
else {
|
||||
return ReturnObject("serialNumbers",DeviceList);
|
||||
}
|
||||
} else {
|
||||
ProvObjects::InventoryTagVec Tags;
|
||||
StorageService()->InventoryDB().GetRecords(QB_.Offset,QB_.Limit,Tags,"",OrderBy);
|
||||
|
||||
Reference in New Issue
Block a user