diff --git a/src/main/java/net/frozenorb/apiv3/accessor/Users.java b/src/main/java/net/frozenorb/apiv3/accessor/Users.java index 5f7827a..2b628de 100644 --- a/src/main/java/net/frozenorb/apiv3/accessor/Users.java +++ b/src/main/java/net/frozenorb/apiv3/accessor/Users.java @@ -7,6 +7,7 @@ import net.frozenorb.apiv3.util.MongoUtils; import org.bson.Document; import java.util.Collection; +import java.util.UUID; @UtilityClass public class Users { @@ -17,8 +18,8 @@ public class Users { MongoUtils.findAndTransform(COLLECTION_NAME, new Document(), User::new, callback); } - public static void findById(String id, SingleResultCallback callback) { - MongoUtils.findOneAndTransform(COLLECTION_NAME, new Document("_id", id), User::new, callback); + public static void findById(UUID id, SingleResultCallback callback) { + MongoUtils.findOneAndTransform(COLLECTION_NAME, new Document("_id", id.toString()), User::new, callback); } } \ No newline at end of file