Skip to content

Commit

Permalink
change postCreateTopic signature to include 4th param
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonSharratt committed Feb 12, 2020
1 parent 1ab7767 commit c2b95ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions microservices/requestApi/routes/v2/routes/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ var getRouter = function(db){
return;
}

var postCreateTopic = function(apiErr, apiRes, body){
var postCreateTopic = function(apiErr, apiRes, body, result){
if (!apiErr){
result.topic = body._id;
result.save(function(e, r){
Expand Down Expand Up @@ -291,14 +291,14 @@ var getRouter = function(db){

parentId = parentBody[0]._id;
createTopic(request.name, parentId, req.user, function(e, r, b){
postCreateTopic(e,r,b,result)
postCreateTopic(e,r,b,result);
return;
});

})
}else{
createTopic(request.name, null, req.user, function(e, r, b){
postCreateTopic(e,r,b,result)
postCreateTopic(e,r,b,result);
return;
});
}
Expand Down

0 comments on commit c2b95ca

Please sign in to comment.