Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonSharratt committed Jan 31, 2020
1 parent 5ca4424 commit 4ba48d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions microservices/requestApi/db/model/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,10 @@ model.getAll = function(query, limit, page, user, callback){
logger.verbose("in topic bind");
if (results){
for (var i=0; i<results.length; i++){
let topicId = results[i].topic;
results[i].projects = projectR.get(topicId);
if (results[i]){
let topicId = results[i].topic;
results[i].projects = projectR.get(topicId);
}
}
}
callback(err, results);
Expand Down

0 comments on commit 4ba48d0

Please sign in to comment.