Skip to content

Commit 6b9dcad

Browse files
Apply suggestion from @greptile-apps[bot]
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent dc4ac58 commit 6b9dcad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server/apis/comment.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,10 @@ router.post('/', async (req, res) => {
146146
updateVoteInPlugin(vote, pluginId);
147147
}
148148

149-
const [row] = await Comment.get([Comment.ID, Comment.COMMENT, Comment.VOTE], [Comment.PLUGIN_ID, pluginId], [Comment.USER_ID, loggedInUser.id]);
149+
const [row] = await Comment.get([Comment.ID, Comment.COMMENT, Comment.VOTE], [
150+
[Comment.PLUGIN_ID, pluginId],
151+
[Comment.USER_ID, loggedInUser.id],
152+
]);
150153

151154
res.send({ message: 'Comment added', id: row.id, comment, vote });
152155
voteMessage = vote !== Comment.VOTE_NULL ? `${loggedInUser.name} voted ${Comment.getVoteString(vote)}` : '';

0 commit comments

Comments
 (0)