mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-31 15:09:32 +00:00
add username to tokens migration
This commit is contained in:
parent
56eccabe5a
commit
30d92a1583
1 changed files with 4 additions and 1 deletions
|
|
@ -58,7 +58,10 @@ var mapping = [
|
|||
_.each(mapping, function(tier){
|
||||
db.users.update(
|
||||
{
|
||||
_id: { $in: tier.users },
|
||||
$or: [
|
||||
{ _id: { $in: tier.users } },
|
||||
{ 'auth.local.username': { $in: tier.users } }
|
||||
],
|
||||
'backer.tokensApplied': { $exists: false }
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue