diff --git a/migrations/users/bulk-email.js b/migrations/users/bulk-email.js index 4508178f133..911bb88ee58 100644 --- a/migrations/users/bulk-email.js +++ b/migrations/users/bulk-email.js @@ -26,7 +26,7 @@ async function updateUser (user) { [{ name: 'BASE_URL', content: BASE_URL }], // Add variables from template ); - return User.update({ _id: user._id }, { $set: { migration: MIGRATION_NAME } }).exec(); + return User.updateOne({ _id: user._id }, { $set: { migration: MIGRATION_NAME } }).exec(); } export default async function processUsers () {