mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 19:47:37 +02: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) {
|
batch.processSortedSet('users:joindate', function (ids, next) {
|
||||||
async.each(ids, function (uid, next) {
|
async.each(ids, function (uid, next) {
|
||||||
user.getSettings(uid, function (err, settings) {
|
db.getObject('user:' + uid + ':settings', function (err, settings) {
|
||||||
if (err) {
|
if (err || !settings) {
|
||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user