mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-30 22:53:27 +01:00
Fix issue with casting UUIDs in MongoDB backing (#443)
This commit is contained in:
parent
76b203ad10
commit
188d62c99b
@ -271,7 +271,7 @@ public class MongoDBBacking extends AbstractBacking {
|
||||
while (cursor.hasNext()) {
|
||||
Document d = cursor.next();
|
||||
|
||||
UUID uuid = UUID.fromString(d.getString("_id"));
|
||||
UUID uuid = d.get("_id", UUID.class);
|
||||
Map<String, Boolean> perms = revert((Map<String, Boolean>) d.get("perms"));
|
||||
|
||||
Set<NodeModel> nodes = new HashSet<>();
|
||||
@ -425,7 +425,7 @@ public class MongoDBBacking extends AbstractBacking {
|
||||
try (MongoCursor<Document> cursor = c.find().iterator()) {
|
||||
while (cursor.hasNext()) {
|
||||
Document d = cursor.next();
|
||||
uuids.add(UUID.fromString(d.getString("_id")));
|
||||
uuids.add(d.get("_id", UUID.class));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user