mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
changed to async.eachSeries
This commit is contained in:
@@ -267,7 +267,7 @@ marked.setOptions({
|
||||
Topics.getTeasers = function(tids, callback) {
|
||||
var teasers = [];
|
||||
if (Array.isArray(tids)) {
|
||||
async.each(tids, function(tid, next) {
|
||||
async.eachSeries(tids, function(tid, next) {
|
||||
Topics.getTeaser(tid, function(err, teaser_info) {
|
||||
if (err) teaser_info = {};
|
||||
teasers.push(teaser_info);
|
||||
|
||||
Reference in New Issue
Block a user