mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
removed updateLastOnlineTime from every socket call
This commit is contained in:
@@ -129,10 +129,6 @@ Sockets.init = function(server) {
|
||||
socket.on('*', function(payload, callback) {
|
||||
|
||||
function callMethod(method) {
|
||||
if(socket.uid) {
|
||||
user.updateLastOnlineTime(socket.uid);
|
||||
}
|
||||
|
||||
method.call(null, socket, payload.args.length ? payload.args[0] : null, function(err, result) {
|
||||
if (callback) {
|
||||
callback(err?{message:err.message}:null, result);
|
||||
@@ -145,7 +141,7 @@ Sockets.init = function(server) {
|
||||
}
|
||||
|
||||
var parts = payload.name.toString().split('.'),
|
||||
namespace = parts.slice(0, 1),
|
||||
namespace = parts[0],
|
||||
methodToCall = parts.reduce(function(prev, cur) {
|
||||
if (prev !== null && prev[cur]) {
|
||||
return prev[cur];
|
||||
|
||||
Reference in New Issue
Block a user