Skip to content

Commit

Permalink
Merge pull request #288 from bcgov/hotfix/organization-issue
Browse files Browse the repository at this point in the history
Fix topic creation failing with parent topic
  • Loading branch information
BrandonSharratt authored Mar 9, 2020
2 parents 44ba7e1 + d95b212 commit 7836c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion microservices/forumApi/routes/v1/routes/topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ router.post("/", function(req, res, next){
log.debug("Creating topic: ", topic);

if (topic.parent_id !== null){
db.Topic.getAll({_id: topic.parent_id}, 1, 1, req.user, function(err, resList){
db.Topic.find({_id: topic.parent_id}, function(err, resList){
log.debug("Topic find one", resList, err);
if (err || resList==null || resList.length === 0){
res.status(400);
Expand Down

0 comments on commit 7836c8e

Please sign in to comment.