This commit is contained in:
Barış Soner Uşaklı
2020-11-25 14:33:19 -05:00
parent 3af4d13fa5
commit e32cd31ec6
3 changed files with 27 additions and 15 deletions

View File

@@ -37,6 +37,7 @@ SocketUser.exists = async function (socket, data) {
SocketUser.deleteAccount = async function (socket, data) {
sockets.warnDeprecated(socket, 'DELETE /api/v3/users/:uid/account');
data.uid = socket.uid;
await api.users.deleteAccount(socket, data);
};