From 0f8e8da80d2247da816e67cd9728f980cceebfc7 Mon Sep 17 00:00:00 2001 From: Sebastian Webster Date: Thu, 12 Oct 2023 16:34:16 +1300 Subject: [PATCH] temp/pollpostcommentreply now returns isOwner --- controllers/Temp.js | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/Temp.js b/controllers/Temp.js index 6d1869c3..056085e3 100644 --- a/controllers/Temp.js +++ b/controllers/Temp.js @@ -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 => {