This commit is contained in:
barisusakli
2014-08-26 13:47:48 -04:00
parent 124a4ce89c
commit eef200be10
6 changed files with 36 additions and 16 deletions

View File

@@ -18,6 +18,12 @@ SocketUser.exists = function(socket, data, callback) {
}
};
SocketUser.deleteAccount = function(socket, data, callback) {
if (socket.uid) {
user.deleteAccount(socket.uid, callback);
}
};
SocketUser.count = function(socket, data, callback) {
user.count(callback);
};