refactor(socket.io): deprecate categories.getRecentReplies in favour of api.categories.getPosts

This commit is contained in:
Julian Lam
2023-10-18 15:01:01 -04:00
parent 8393113851
commit 52b78e83a8
4 changed files with 14 additions and 1 deletions

View File

@@ -61,6 +61,8 @@ categoriesAPI.delete = async function (caller, { cid }) {
});
};
categoriesAPI.getPosts = async (caller, { cid }) => await categories.getRecentReplies(cid, caller.uid, 0, 4);
categoriesAPI.getPrivileges = async (caller, { cid }) => {
await hasAdminPrivilege(caller.uid, 'privileges');