Framework update, adding state to inventory tag, support for subscriber for inventory tag

This commit is contained in:
stephb9959
2022-01-11 23:08:01 -08:00
parent 15bd8b6c6b
commit 6d5a3510bc
22 changed files with 549 additions and 231 deletions

View File

@@ -82,9 +82,9 @@ namespace OpenWifi{
return SendList(Tags, SerialOnly);
} else if (HasParameter("subscriber",Arg) && !Arg.empty()) {
// looking for device(s) for a specific subscriber...
ProvObjects::InventoryTagVec Devices;
StorageService()->InventoryDB().GetRecords(0,100,Devices," subscriber='" + Arg + "'");
return SendList(Devices,SerialOnly);
ProvObjects::InventoryTagVec Tags;
StorageService()->InventoryDB().GetRecords(0,100,Tags," subscriber='" + Arg + "'");
return MakeJSONObjectArray("taglist", Tags, *this);
} else if (QB_.CountOnly) {
auto C = StorageService()->InventoryDB().Count();
return ReturnCountOnly(C);