feat(writeapi): added DELETE /groups/:slug/membership/:uid route

This commit is contained in:
Julian Lam
2020-04-30 21:36:04 -04:00
parent 68ecf41ecf
commit 40dc1c38d3
9 changed files with 66 additions and 55 deletions

View File

@@ -69,6 +69,8 @@ SocketGroups.join = async (socket, data) => {
};
SocketGroups.leave = async (socket, data) => {
sockets.warnDeprecated(socket, 'DELETE /api/v1/groups/:slug/membership/:uid');
if (socket.uid <= 0) {
throw new Error('[[error:invalid-uid]]');
}