База для ручки PostUserMedicationsExecutor.h

This commit is contained in:
2026-01-08 12:20:51 +03:00
parent 8657b2910b
commit 50bad13f86
3 changed files with 9 additions and 7 deletions
@@ -46,7 +46,7 @@ public:
if (req[http::field::authorization].size() <= auth_prefix.size())
{
BOOST_LOG_TRIVIAL(info) << invalid_token_message;
BOOST_LOG_TRIVIAL(error) << invalid_token_message;
throw session_exception(http::status::unauthorized, "Unauthorized");
}
@@ -54,7 +54,7 @@ public:
if (!auth_dao_->HasAuthorized(auth_token))
{
BOOST_LOG_TRIVIAL(info) << invalid_token_message;
BOOST_LOG_TRIVIAL(error) << invalid_token_message;
throw session_exception(http::status::unauthorized, "Unauthorized");
}