change parallel to series in flag creation

v1.18.x
Barış Soner Uşaklı 7 years ago
parent f948ecef07
commit 7f67528280

@ -387,7 +387,7 @@ Flags.create = function (type, id, uid, reason, timestamp, callback) {
tasks.push(async.apply(Flags.update, flagId, uid, { state: 'open' }));
}
async.parallel(tasks, function (err) {
async.series(tasks, function (err) {
next(err, flagId);
});
},

Loading…
Cancel
Save