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 b8d1773 commit f80dc69Copy full SHA for f80dc69
backend/question-service/src/controllers/questionController.ts
@@ -107,6 +107,6 @@ export const deleteQuestion = async (
107
await Question.findByIdAndDelete(id);
108
res.status(200).json({ message: QN_DELETED });
109
} catch (error) {
110
- res.send(500).json({ message: SERVER_ERROR, error });
+ res.status(500).json({ message: SERVER_ERROR, error });
111
}
112
};
0 commit comments