more tests

This commit is contained in:
barisusakli
2016-11-08 19:59:19 +03:00
parent bbb968922d
commit d23966c534
2 changed files with 29 additions and 8 deletions

View File

@@ -1,5 +1,4 @@
"use strict";
var async = require('async');
var validator = require('validator');
@@ -82,7 +81,7 @@ SocketModules.chats.send = function (socket, data, callback) {
function (message, next) {
Messaging.notifyUsersInRoom(socket.uid, data.roomId, message);
user.updateOnlineUsers(socket.uid);
next();
next(null, message);
}
], callback);
};