Skip to content

Commit

Permalink
temp/searchforpollcomments now returns isOwner property
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian-Webster committed Oct 12, 2023
1 parent 0f8e8da commit fceac7f
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 @@ -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))
Expand Down

0 comments on commit fceac7f

Please sign in to comment.