diff --git a/src/topics/posts.js b/src/topics/posts.js index 64f9fd1392..f40b0a5e0a 100644 --- a/src/topics/posts.js +++ b/src/topics/posts.js @@ -15,7 +15,7 @@ var async = require('async'), module.exports = function(Topics) { Topics.onNewPostMade = function(postData, callback) { - async.parallel([ + async.series([ function(next) { Topics.increasePostCount(postData.tid, next); }, diff --git a/src/user/posts.js b/src/user/posts.js index 97be04513e..e9f64ef073 100644 --- a/src/user/posts.js +++ b/src/user/posts.js @@ -63,7 +63,7 @@ module.exports = function(User) { }; User.onNewPostMade = function(postData, callback) { - async.parallel([ + async.series([ function(next) { User.addPostIdToUser(postData.uid, postData.pid, postData.timestamp, next); },