Fixing Database updates limit/offset

This commit is contained in:
stephb9959
2021-11-17 15:51:12 -08:00
parent fd1ea7bb11
commit f5614c5a48
26 changed files with 119 additions and 71 deletions

View File

@@ -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);