Fixing a few bugs and typos.

This commit is contained in:
stephb9959
2022-04-15 08:06:10 -04:00
parent 25a7b546ae
commit 3a758b6fbd
5 changed files with 14 additions and 17 deletions

View File

@@ -62,10 +62,9 @@ namespace OpenWifi {
}
void RESTAPI_op_contact_handler::DoPut() {
auto uuid = GetBinding("uuid","");
auto uuid = GetBinding("uuid");
OpContactDB::RecordName Existing;
if(uuid.empty() || DB_.GetRecord("id",uuid,Existing)) {
if(uuid.empty() || !DB_.GetRecord("id",uuid,Existing)) {
return BadRequest(RESTAPI::Errors::MissingUUID);
}