Skip to content

Commit

Permalink
fix(script): replace deprecated update function
Browse files Browse the repository at this point in the history
  • Loading branch information
SabreCat committed Dec 30, 2024
1 parent 86fb3c1 commit aa43202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations/users/bulk-email.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit aa43202

Please sign in to comment.