Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonSharratt committed Feb 4, 2020
1 parent 3501277 commit 1ce5540
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions microservices/requestApi/routes/routes/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,11 @@ var buildDynamic = function(projectConfig, db, notify, util, router){
// Lookup project from user groups
var project = projectConfig.deriveProjectFromUser(req.user);

console.log("SUBMISSION DB", db);

db.Request.getAll({_id: requestId}, 1, 1, req.user, function (reqErr, reqRes) {
if (reqErr || !reqRes || reqRes.length == 0) {
console.log("SUBMISSION ERROR", reqErr, resRes);
res.status(400);
res.json({error: "No Results"});
return;
Expand Down

0 comments on commit 1ce5540

Please sign in to comment.