From f74ee4e45c75d192996d6295158864b9f473db5c Mon Sep 17 00:00:00 2001 From: SumonHossainJs <136088595+SumonHossainJs@users.noreply.github.com> Date: Mon, 19 Jun 2023 23:03:22 +0300 Subject: [PATCH] Update comment.js There is a grammatical error --- server/controllers/comment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controllers/comment.js b/server/controllers/comment.js index 2a73b1310a..3eda5039a3 100644 --- a/server/controllers/comment.js +++ b/server/controllers/comment.js @@ -20,7 +20,7 @@ export const deleteComment = async (req, res, next) => { await Comment.findByIdAndDelete(req.params.id); res.status(200).json("The comment has been deleted."); } else { - return next(createError(403, "You can delete ony your comment!")); + return next(createError(403, "You can delete only your comment!")); } } catch (err) { next(err);