add username to tokens migration

This commit is contained in:
Tyler Renelle
2013-03-27 16:02:29 -07:00
parent 56eccabe5a
commit 30d92a1583

View File

@@ -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 }
},