Fixing location/contact deletion.

This commit is contained in:
stephb9959
2021-10-21 08:44:35 -07:00
parent e49cef57e6
commit f28ef3f65b
6 changed files with 9 additions and 4 deletions

View File

@@ -70,6 +70,8 @@ namespace OpenWifi{
}
if(DB_.DeleteRecord("id",UUID)) {
if(!Existing.entity.empty())
Storage()->EntityDB().DeleteLocation("id",Existing.entity,UUID);
return OK();
}
InternalError(RESTAPI::Errors::CouldNotBeDeleted);