Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonSharratt committed Jan 31, 2020
1 parent 269715f commit b348da4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions microservices/requestApi/routes/routes/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,9 @@ var buildDynamic = function(projectConfig, db, notify, util, router){
var config = require('config');
var logger = require('npmlog');

console.log("Saving");
db.Request.getAll({_id: requestId}, 1, 1, req.user, function(findErr, findRes){
console.log("Inside get all", findErr, findRes);
if (findErr || !findRes || findRes.length <= 0){
res.status(400);
res.json({error: "No such request"});
Expand Down

0 comments on commit b348da4

Please sign in to comment.