fix(script): replace deprecated update function

This commit is contained in:
Kalista Payne
2024-12-30 14:58:52 -06:00
parent 86fb3c1fd1
commit aa432022d3

View File

@@ -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 () {