Skip to content

Commit

Permalink
temp/pollpostcommentreply now returns isOwner
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian-Webster committed Oct 12, 2023
1 parent 81248fe commit 0f8e8da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/Temp.js
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,7 @@ class TempController {
Poll.findOneAndUpdate({_id: {$eq: postId}}, { $push: { [`comments.${sentIndex}.commentReplies`]: commentForPost } }).then(function(){
commentForPost.commentId = String(commentForPost.commentId)
commentForPost.commenterId = String(commentForPost.commenterId)
commentForPost.isOwner = true;
return resolve(HTTPWTHandler.OK('Comment upload successful', commentForPost))
})
.catch(err => {
Expand Down

0 comments on commit 0f8e8da

Please sign in to comment.