Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
taugk committed Dec 16, 2023
1 parent 23b2e09 commit 6d3c88c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/postsRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ router.post(
} = req.body;

try {
const tokenDecode = req.authData; // Use the decoded token from middleware
const tokenDecode = req.authData;
const categoryExists = await Category.findByPk(categoryId);

if (!categoryExists) {
Expand Down

0 comments on commit 6d3c88c

Please sign in to comment.