mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-27 01:33:05 +00:00
Fix mongodb bulkupdate (#572)
This commit is contained in:
1 file changed
+2
-2
@@ -246,7 +246,7 @@ public class MongoDao extends AbstractDao {
|
||||
permsDoc.append(e.getKey(), e.getValue());
|
||||
}
|
||||
|
||||
d.put("perms", perms);
|
||||
d.put("perms", permsDoc);
|
||||
c.replaceOne(new Document("_id", uuid), d);
|
||||
}
|
||||
}
|
||||
@@ -280,7 +280,7 @@ public class MongoDao extends AbstractDao {
|
||||
permsDoc.append(e.getKey(), e.getValue());
|
||||
}
|
||||
|
||||
d.put("perms", perms);
|
||||
d.put("perms", permsDoc);
|
||||
c.replaceOne(new Document("_id", holder), d);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user