mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
fix(migration): casing
This commit is contained in:
@@ -21,7 +21,7 @@ async function updateUser (user) {
|
|||||||
data: {
|
data: {
|
||||||
icon: 'notif_orca_pet',
|
icon: 'notif_orca_pet',
|
||||||
title: 'Orcas for Summer Splash!',
|
title: 'Orcas for Summer Splash!',
|
||||||
text: 'To celebrate Summer splash, we\'ve given you an Orca Pet!',
|
text: 'To celebrate Summer Splash, we\'ve given you an Orca Pet!',
|
||||||
destination: 'stable',
|
destination: 'stable',
|
||||||
},
|
},
|
||||||
seen: false,
|
seen: false,
|
||||||
@@ -33,7 +33,7 @@ async function updateUser (user) {
|
|||||||
data: {
|
data: {
|
||||||
icon: 'notif_orca_mount',
|
icon: 'notif_orca_mount',
|
||||||
title: 'Orcas for Summer Splash!',
|
title: 'Orcas for Summer Splash!',
|
||||||
text: 'To celebrate Summer splash, we\'ve given you an Orca Mount!',
|
text: 'To celebrate Summer Splash, we\'ve given you an Orca Mount!',
|
||||||
destination: 'stable',
|
destination: 'stable',
|
||||||
},
|
},
|
||||||
seen: false,
|
seen: false,
|
||||||
@@ -42,7 +42,7 @@ async function updateUser (user) {
|
|||||||
|
|
||||||
if (count % progressCount === 0) console.warn(`${count} ${user._id}`);
|
if (count % progressCount === 0) console.warn(`${count} ${user._id}`);
|
||||||
|
|
||||||
return await User.updateOne({ $set: set, $push: push }).exec();
|
return await user.updateOne({ $set: set, $push: push }).exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
export default async function processUsers () {
|
export default async function processUsers () {
|
||||||
@@ -62,7 +62,6 @@ export default async function processUsers () {
|
|||||||
.limit(250)
|
.limit(250)
|
||||||
.sort({_id: 1})
|
.sort({_id: 1})
|
||||||
.select(fields)
|
.select(fields)
|
||||||
.lean()
|
|
||||||
.exec();
|
.exec();
|
||||||
|
|
||||||
if (users.length === 0) {
|
if (users.length === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user