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 a723732 commit dda9794
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions microservices/requestApi/db/model/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,11 @@ model.getAll = function(query, limit, page, user, callback){

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

0 comments on commit dda9794

Please sign in to comment.