mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
add username to tokens migration
This commit is contained in:
@@ -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 }
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user