fix references

This commit is contained in:
Barış Soner Uşaklı
2016-01-05 23:32:30 +02:00
parent a830995dda
commit 1a86e68394

View File

@@ -17,10 +17,10 @@ module.exports = function(SocketTopics) {
return callback(err);
}
Topics.pushUnreadCount(uid);
topics.pushUnreadCount(socket.uid);
for (var i=0; i<tids.length; ++i) {
Topics.markTopicNotificationsRead(tids[i], uid);
topics.markTopicNotificationsRead(tids[i], socket.uid);
}
});
};
@@ -38,7 +38,7 @@ module.exports = function(SocketTopics) {
return callback(err);
}
Topics.pushUnreadCount(uid);
topics.pushUnreadCount(socket.uid);
callback();
});