renamed event

This commit is contained in:
barisusakli
2014-03-17 17:38:47 -04:00
parent 8efc33d6a1
commit f83b7ee972
4 changed files with 4 additions and 4 deletions

View File

@@ -1022,7 +1022,7 @@ var async = require('async'),
Topics.addPostToTopic(postData.tid, postData.pid, postData.timestamp);
};
emitter.on('newpost', Topics.onNewPostMade);
emitter.on('event:newpost', Topics.onNewPostMade);
Topics.addPostToTopic = function(tid, pid, timestamp, callback) {
db.sortedSetAdd('tid:' + tid + ':posts', timestamp, pid, callback);