Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonSharratt committed Feb 3, 2020
1 parent 7e2f1f0 commit d850c4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions microservices/requestApi/db/model/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,13 +417,15 @@ model.getAll = function(query, limit, page, user, callback){
}

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

0 comments on commit d850c4a

Please sign in to comment.