removed global.socket, passing in socket to the functions now

This commit is contained in:
Baris Usakli
2013-05-02 12:54:27 -04:00
parent 06d013e6de
commit 39b24436d0
5 changed files with 35 additions and 35 deletions

View File

@@ -60,7 +60,7 @@ var RDB = require('./redis.js'),
}
Posts.reply = function(tid, uid, content) {
Posts.reply = function(socket, tid, uid, content) {
Posts.create(uid, content, function(pid) {
RDB.rpush('tid:' + tid + ':posts', pid);