From 30d92a1583f3334a638226e94e6c93f55a69bcc2 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Wed, 27 Mar 2013 16:02:29 -0700 Subject: [PATCH] add username to tokens migration --- migrations/20130327_apply_tokens.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/migrations/20130327_apply_tokens.js b/migrations/20130327_apply_tokens.js index 5f62f55ac3..e958c232b4 100644 --- a/migrations/20130327_apply_tokens.js +++ b/migrations/20130327_apply_tokens.js @@ -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 } },