diff --git a/migrations/users/full-gear.js b/migrations/users/full-gear.js index e47b6f85399..1cc041d8851 100644 --- a/migrations/users/full-gear.js +++ b/migrations/users/full-gear.js @@ -27,13 +27,13 @@ async function updateUser (user) { if (count % progressCount === 0) console.warn(`${count} ${user._id}`); - return User.update({ _id: user._id }, { $set: set }).exec(); + return User.updateOne({ _id: user._id }, { $set: set }).exec(); } export default async function processUsers () { const query = { migration: { $ne: MIGRATION_NAME }, - 'auth.local.lowerCaseUsername': 'olson1', + 'auth.local.username': 'ExampleHabitican', }; const fields = { diff --git a/migrations/users/full-stable.js b/migrations/users/full-stable.js index 01d6e044645..78375052400 100644 --- a/migrations/users/full-stable.js +++ b/migrations/users/full-stable.js @@ -57,7 +57,7 @@ async function updateUser (user) { export default async function processUsers () { const query = { migration: { $ne: MIGRATION_NAME }, - 'auth.local.username': 'SabreTest', + 'auth.local.username': 'ExampleHabitican', }; const fields = {