From 5f17e327cef5f1f85a459cba43eacb443961e8cb Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 24 Feb 2016 20:10:06 +0200 Subject: [PATCH] possible fix for https://github.com/akhoury/nodebb-plugin-import/issues/173 --- src/topics/posts.js | 2 +- src/user/posts.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); },