mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 08:37:07 +02:00
refactor(socket.io): deprecated SocketModules.chats.searchMembers in favour of api.search.roomUsers
This commit is contained in:
@@ -8,3 +8,8 @@ const Search = module.exports;
|
||||
Search.categories = async (req, res) => {
|
||||
helpers.formatApiResponse(200, res, await api.search.categories(req, req.query));
|
||||
};
|
||||
|
||||
Search.roomUsers = async (req, res) => {
|
||||
const { query } = req.query;
|
||||
helpers.formatApiResponse(200, res, await api.search.roomUsers(req, { query, ...req.params }));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user