Error Framework update

This commit is contained in:
stephb9959
2022-05-07 20:18:40 -07:00
parent 84cf98d6a8
commit 75a3e57e9d
25 changed files with 307 additions and 252 deletions

View File

@@ -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;