changed to async.eachSeries

This commit is contained in:
Baris Usakli
2013-07-19 15:26:29 -04:00
parent c1b170ec86
commit ff9990701b
3 changed files with 26 additions and 25 deletions

View File

@@ -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);