remove async.parallel

v1.18.x
Barış Soner Uşaklı 8 years ago
parent 5e4b9479d4
commit 6daeadb7e9

@ -60,18 +60,11 @@ module.exports = function (User) {
if (exists) { if (exists) {
return next(new Error('[[error:email-taken]]')); return next(new Error('[[error:email-taken]]'));
} }
async.parallel([
function (next) {
db.setAdd('invitation:uid:' + uid, email, next); db.setAdd('invitation:uid:' + uid, email, next);
}, },
function (next) { function (next) {
db.setAdd('invitation:uids', uid, next); db.setAdd('invitation:uids', uid, next);
}, },
], function (err) {
next(err);
});
},
function (next) { function (next) {
db.set('invitation:email:' + email, token, next); db.set('invitation:email:' + email, token, next);
}, },

Loading…
Cancel
Save