diff --git a/src/requesthandler/rpc/Request.cpp b/src/requesthandler/rpc/Request.cpp index cc326b50..0d554365 100644 --- a/src/requesthandler/rpc/Request.cpp +++ b/src/requesthandler/rpc/Request.cpp @@ -24,7 +24,7 @@ const bool Request::Contains(const std::string keyName) const const bool Request::ValidateBasic(const std::string keyName, RequestStatus::RequestStatus &statusCode, std::string &comment) const { - if (HasRequestData) { + if (!HasRequestData) { statusCode = RequestStatus::MissingRequestData; comment = "Your request data is missing or invalid (non-object)"; return false;