Skip to content

Commit

Permalink
Merge pull request #35 from wearefuturegov/develop
Browse files Browse the repository at this point in the history
Staging update with more debug logs
  • Loading branch information
apricot13 authored Jun 6, 2024
2 parents 2d33f6a + 3a556d5 commit 983a29a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/controllers/v1/services/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ module.exports = {
*/
show: async (req, res, next) => {
try {
logger.info(req.params)
const query = getService.buildQuery(req.params)
const result = await getService.executeQuery(query)
// let result = await db()
Expand Down
5 changes: 5 additions & 0 deletions src/controllers/v1/services/routes/get-service.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const filters = require("../../../../lib/filters")
const { projection } = require("../../../../lib")
const { db } = require("../../../../db")
const logger = require("../../../../../utils/logger")

module.exports = {
/**
Expand All @@ -24,6 +25,10 @@ module.exports = {
* @returns
*/
async executeQuery(query) {
logger.debug("query")
logger.debug(query)
logger.debug(JSON.stringify(query))

let result = await db()
.collection("indexed_services")
.findOne(query, projection)
Expand Down

0 comments on commit 983a29a

Please sign in to comment.