Skip to content

Commit f80dc69

Browse files
committed
Fix error
1 parent b8d1773 commit f80dc69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/question-service/src/controllers/questionController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,6 @@ export const deleteQuestion = async (
107107
await Question.findByIdAndDelete(id);
108108
res.status(200).json({ message: QN_DELETED });
109109
} catch (error) {
110-
res.send(500).json({ message: SERVER_ERROR, error });
110+
res.status(500).json({ message: SERVER_ERROR, error });
111111
}
112112
};

0 commit comments

Comments
 (0)