mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 12:31:33 +01:00
possible fix for https://github.com/akhoury/nodebb-plugin-import/issues/173
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user