refactor(socket.io): deprecate SocketModules.chats.getIP in favour of api.chats.getIpAddress

This commit is contained in:
Julian Lam
2023-11-14 11:53:53 -05:00
parent 0d3c94e6bb
commit 214989a8c1
7 changed files with 57 additions and 6 deletions

View File

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