Fix issue with User#findByEmailToken caused by field renaming

This commit is contained in:
Colin McDonald 2016-07-25 16:58:10 -04:00
parent 5805506372
commit 3ab317da1f

View File

@ -137,7 +137,7 @@ public final class User {
} }
public static void findByEmailToken(String emailToken, SingleResultCallback<User> callback) { public static void findByEmailToken(String emailToken, SingleResultCallback<User> callback) {
usersCollection.find(new Document("emailToken", emailToken)).first(SyncUtils.vertxWrap(callback)); usersCollection.find(new Document("pendingEmailToken", emailToken)).first(SyncUtils.vertxWrap(callback));
} }
public static void findByLastUsername(String lastUsername, SingleResultCallback<User> callback) { public static void findByLastUsername(String lastUsername, SingleResultCallback<User> callback) {