Skip to content

Commit 928cd3a

Browse files
committed
test minor bug fix in patchThought controller
1 parent 0586350 commit 928cd3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/patchThought.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const patchThought = async (req, res) => {
1616
})
1717
}
1818

19-
if (thought.userId.toString() !== userId) {
19+
if (thought.userId.toString() !== userId.toString()) {
2020
return res.status(403).json({
2121
success: false,
2222
response: [],

0 commit comments

Comments
 (0)