diff --git a/src/main/java/net/frozenorb/apiv3/model/User.java b/src/main/java/net/frozenorb/apiv3/model/User.java index abae471..5be55c7 100644 --- a/src/main/java/net/frozenorb/apiv3/model/User.java +++ b/src/main/java/net/frozenorb/apiv3/model/User.java @@ -150,7 +150,7 @@ public final class User { } public static void findByLastUsernameLower(String lastUsernameLower, SingleResultCallback callback) { - usersCollection.find(new Document("lastUsernameLower", lastUsernameLower)).first(SyncUtils.vertxWrap(callback)); + usersCollection.find(new Document("lastUsernameLower", lastUsernameLower.toLowerCase())).first(SyncUtils.vertxWrap(callback)); } public static void findOrCreateByIdGrouped(Map search, SingleResultCallback> callback) {