check for null username

This commit is contained in:
Girish Ramakrishnan
2016-05-31 21:38:32 -07:00
parent 663ff2410a
commit b03e4db8d5

View File

@@ -10,6 +10,8 @@ exports.up = function(db, callback) {
if (error) return done(error);
async.eachSeries(results, function (r, next) {
if (!r.username) return next();
db.runSql('INSERT INTO mailboxes (name) VALUES (?)', [ r.username ], next);
}, done);
});