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 76ea853 commit 13885b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions microservices/requestApi/routes/routes/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,6 @@ var buildDynamic = function(projectConfig, db, notify, util, router){
// Lookup project from user groups
var project = projectConfig.deriveProjectFromUser(req.user);

console.log("SUBMISSION DB v", db.Request.VERSION);

db.Request.getAll({_id: requestId}, 1, 1, req.user, function (reqErr, reqRes) {
if (reqErr || !reqRes || reqRes.length == 0) {
console.log("SUBMISSION ERROR", reqErr, resRes);
Expand Down
3 changes: 2 additions & 1 deletion microservices/requestApi/routes/v2/db/model/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ model.getAll = function(query, limit, page, user, callback){


if ('_id' in query) {
db.Request.findById(query['_id'], (err, req) => {
db.Request.findById(query['_id'], (err3, req) => {
console.log("ID Query?", err3, req);
if ( (req !== null) && (typeof(req) !== "undefined") && (typeof(req.topic) !== "undefined") ){
getAllTopics(user, { id: req.topic }, queryRequests);
}else{
Expand Down

0 comments on commit 13885b8

Please sign in to comment.