We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0586350 commit 928cd3aCopy full SHA for 928cd3a
controllers/patchThought.js
@@ -16,7 +16,7 @@ export const patchThought = async (req, res) => {
16
})
17
}
18
19
- if (thought.userId.toString() !== userId) {
+ if (thought.userId.toString() !== userId.toString()) {
20
return res.status(403).json({
21
success: false,
22
response: [],
0 commit comments