refactor(socket.io): deprecate SocketModules.chats.getRaw in favour of api.chats.getRawMessage

This commit is contained in:
Julian Lam
2023-11-09 15:18:55 -05:00
parent 22181f161b
commit c4b4e79b28
7 changed files with 69 additions and 10 deletions

View File

@@ -124,6 +124,10 @@ Chats.messages.get = async (req, res) => {
helpers.formatApiResponse(200, res, await api.chats.getMessage(req, { mid, roomId }));
};
Chats.messages.getRaw = async (req, res) => {
helpers.formatApiResponse(200, res, await api.chats.getRawMessage(req, { ...req.params }));
};
Chats.messages.edit = async (req, res) => {
const { mid, roomId } = req.params;
const { message } = req.body;