feat(writeapi): added group joining and deletion

This commit is contained in:
Julian Lam
2020-10-01 14:11:59 -04:00
parent d044c3223e
commit 952dc211dd
11 changed files with 135 additions and 44 deletions

View File

@@ -24,6 +24,8 @@ Groups.create = async function (socket, data) {
};
Groups.join = async (socket, data) => {
sockets.warnDeprecated(socket, 'PUT /api/v1/groups/:slug/membership/:uid');
if (!data) {
throw new Error('[[error:invalid-data]]');
}