Skip to content

Commit

Permalink
admin dashboard fix delete forum reply
Browse files Browse the repository at this point in the history
  • Loading branch information
singharaj-usai committed Oct 9, 2024
1 parent 6186006 commit ccbb47c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/functions/api/routes/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ router.delete('/forum-posts/:id', authenticateToken, async (req, res) => {
// Delete a forum reply
router.delete('/forum-replies/:id', authenticateToken, async (req, res) => {
try {
const reply = await Replies.findById(req.params.id);
const reply = await Reply.findById(req.params.id);
if (!reply) {
return res.status(404).json({ error: 'Reply not found' });
}
Expand Down

0 comments on commit ccbb47c

Please sign in to comment.