Commit 4ad715ee authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Fix API version for AuthenticationData API

parent c0548a66
...@@ -38,6 +38,8 @@ ...@@ -38,6 +38,8 @@
#include "logger.hpp" #include "logger.hpp"
#include "udr_config.hpp" #include "udr_config.hpp"
extern oai::udr::config::udr_config udr_cfg;
namespace oai::udr::api { namespace oai::udr::api {
using namespace oai::udr::helpers; using namespace oai::udr::helpers;
...@@ -56,7 +58,7 @@ void AuthenticationDataDocumentApi::setupRoutes() { ...@@ -56,7 +58,7 @@ void AuthenticationDataDocumentApi::setupRoutes() {
Routes::Put( Routes::Put(
*router, *router,
base + base + udr_cfg.nudr.api_version +
"/subscription-data/:ueId/authentication-data/" "/subscription-data/:ueId/authentication-data/"
"authentication-subscription", "authentication-subscription",
Routes::bind( Routes::bind(
......
...@@ -143,6 +143,8 @@ bool mysql_db::insert_authentication_subscription( ...@@ -143,6 +143,8 @@ bool mysql_db::insert_authentication_subscription(
query += ",sequenceNumber='" + json_tmp.dump() + "'"; query += ",sequenceNumber='" + json_tmp.dump() + "'";
} }
Logger::udr_mysql().info("MySQL Query: %s", query.c_str());
if (mysql_real_query( if (mysql_real_query(
&mysql_connector, query.c_str(), (unsigned long) query.size())) { &mysql_connector, query.c_str(), (unsigned long) query.size())) {
Logger::udr_mysql().error( Logger::udr_mysql().error(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment