mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-02 22:00:34 +01:00
if user does not have settings object skip
This commit is contained in:
@@ -356,8 +356,8 @@ Upgrade.upgrade = function (callback) {
|
||||
|
||||
batch.processSortedSet('users:joindate', function (ids, next) {
|
||||
async.each(ids, function (uid, next) {
|
||||
user.getSettings(uid, function (err, settings) {
|
||||
if (err) {
|
||||
db.getObject('user:' + uid + ':settings', function (err, settings) {
|
||||
if (err || !settings) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user