From c369ac6b9091d33db72512b36747c29a646f1104 Mon Sep 17 00:00:00 2001 From: Luck Date: Wed, 29 Nov 2017 23:10:32 +0000 Subject: [PATCH] Fix mongodb bulkupdate (#572) --- .../lucko/luckperms/common/storage/dao/mongodb/MongoDao.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/storage/dao/mongodb/MongoDao.java b/common/src/main/java/me/lucko/luckperms/common/storage/dao/mongodb/MongoDao.java index f9b137d2f..45110cc21 100644 --- a/common/src/main/java/me/lucko/luckperms/common/storage/dao/mongodb/MongoDao.java +++ b/common/src/main/java/me/lucko/luckperms/common/storage/dao/mongodb/MongoDao.java @@ -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); } }