From fceac7f7f9b876da3f48e270446de9e3fc08e998 Mon Sep 17 00:00:00 2001 From: Sebastian Webster Date: Thu, 12 Oct 2023 16:35:22 +1300 Subject: [PATCH] temp/searchforpollcomments now returns isOwner property --- controllers/Temp.js | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/Temp.js b/controllers/Temp.js index 056085e3..9671d1ef 100644 --- a/controllers/Temp.js +++ b/controllers/Temp.js @@ -842,6 +842,7 @@ class TempController { const modifiedNameSendBackObject = nameSendBackObject.map(item => { item.commentId = String(item.commentId) item.commenterId = String(item.commenterId) + item.isOwner = String(userId) === String(item.commenterId) return item }) return resolve(HTTPWTHandler.OK('Comment search successful', modifiedNameSendBackObject))