mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
callback undefined error
This commit is contained in:
@@ -22,6 +22,7 @@ module.exports = function(Topics) {
|
||||
emitter.on('event:newpost', Topics.onNewPostMade);
|
||||
|
||||
Topics.getTopicPosts = function(tid, set, start, end, uid, reverse, callback) {
|
||||
callback = callback || function() {};
|
||||
posts.getPostsByTid(tid, set, start, end, reverse, function(err, postData) {
|
||||
if(err) {
|
||||
return callback(err);
|
||||
|
||||
Reference in New Issue
Block a user