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