diff --git a/core/db_callings/query_db_callings.js b/core/db_callings/query_db_callings.js index 7320641..5b7f1bf 100644 --- a/core/db_callings/query_db_callings.js +++ b/core/db_callings/query_db_callings.js @@ -51,6 +51,7 @@ module.exports.getOneFromDB = function (req, res) { }; + module.exports.getFromDBAdvance = function (selectObj, whereObj, sort, limit, req, res) { var entityModel = mongoose.model(req.params.modelName, entity); diff --git a/core/end_points/query_end_points.js b/core/end_points/query_end_points.js index 237eb79..a5628bd 100644 --- a/core/end_points/query_end_points.js +++ b/core/end_points/query_end_points.js @@ -24,7 +24,7 @@ module.exports.createQueryEndPoints = function (app) { // Retrieve specific data from given model (collection) app.get('/app/:modelName/:id', function (req, res) { - logger.info('NodeGrid:query_end_points/createQueryEndPoints - [GET/app/:modelName]'); + logger.info('NodeGrid:query_end_points/createQueryEndPoints - [GET/app/:modelName/:id]'); queryServices.handleQueryModelGetOne(req, res); }); }; \ No newline at end of file diff --git a/core/services/query_services.js b/core/services/query_services.js index be32a79..160fa03 100644 --- a/core/services/query_services.js +++ b/core/services/query_services.js @@ -99,4 +99,4 @@ module.exports.handleQueryModelGetOne = function (req, res) { logger.info('NodeGrid:query_services/handleQueryModelGetOne - Querying attempt data from given model (collection)'); queryDb.getOneFromDB(req,res); -}; \ No newline at end of file +};