mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
fix(script): replace deprecated update function
This commit is contained in:
parent
86fb3c1fd1
commit
aa432022d3
1 changed files with 1 additions and 1 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Reference in a new issue