mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-02 11:37:54 +00:00
Error Framework update
This commit is contained in:
@@ -53,7 +53,7 @@ namespace OpenWifi {
|
||||
return BadRequest(RESTAPI::Errors::MissingUUID);
|
||||
}
|
||||
|
||||
auto RawObj = ParseStream();
|
||||
const auto & RawObj = ParsedBody_;
|
||||
VariablesDB::RecordName NewObject;
|
||||
if(!NewObject.from_json(RawObj)) {
|
||||
return BadRequest(RESTAPI::Errors::InvalidJSONDocument);
|
||||
@@ -100,7 +100,7 @@ namespace OpenWifi {
|
||||
return NotFound();
|
||||
}
|
||||
|
||||
auto RawObject = ParseStream();
|
||||
const auto & RawObject = ParsedBody_;
|
||||
VariablesDB::RecordName NewObj;
|
||||
if(!NewObj.from_json(RawObject)) {
|
||||
return BadRequest(RESTAPI::Errors::InvalidJSONDocument);
|
||||
|
||||
Reference in New Issue
Block a user