Skip to content

Node.js based forum software built for the modern web

fix callback

barisusakli6f046af34bf3
diff --git a/src/posts/delete.js b/src/posts/delete.js
index 4f3612ad1f..733ed1006b 100644
--- a/src/posts/delete.js
+++ b/src/posts/delete.js
@@ -72,7 +72,7 @@ module.exports = function(Posts) {
topics.updateTeaser(postData.tid, next);
}
], function(err) {
- callback(err, postData);
+ next(err, postData);
});
}
], callback);