Adding removal subscriber

This commit is contained in:
stephb9959
2022-03-07 10:04:24 -08:00
parent c13643a0bd
commit 705a183f06
2 changed files with 5 additions and 3 deletions

View File

@@ -34,6 +34,7 @@ namespace OpenWifi{
}
void RESTAPI_inventory_handler::DoGet() {
ProvObjects::InventoryTag Existing;
std::string SerialNumber = GetBinding(RESTAPI::Protocol::SERIALNUMBER,"");
if(SerialNumber.empty() || !DB_.GetRecord(RESTAPI::Protocol::SERIALNUMBER,SerialNumber,Existing)) {