diff --git a/migrations/users/full-gear.js b/migrations/users/full-gear.js index e47b6f8539..1cc041d885 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 01d6e04464..7837505240 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 = {