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:
@@ -31,7 +31,7 @@ namespace OpenWifi {
|
||||
void DoPut() final;
|
||||
void DoDelete() final;
|
||||
|
||||
template <typename T> bool IdExists(T &DB, const std::string &Field, const std::string &Error) {
|
||||
template <typename T> bool IdExists(T &DB, const std::string &Field, const RESTAPI::Errors::msg &Error) {
|
||||
if(!Field.empty() && !DB.Exists("id",Field)) {
|
||||
BadRequest(Error);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user