Fix mongodb bulkupdate (#572)
This commit is contained in:
parent
e2b9e37867
commit
c369ac6b90
@ -246,7 +246,7 @@ public class MongoDao extends AbstractDao {
|
|||||||
permsDoc.append(e.getKey(), e.getValue());
|
permsDoc.append(e.getKey(), e.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
d.put("perms", perms);
|
d.put("perms", permsDoc);
|
||||||
c.replaceOne(new Document("_id", uuid), d);
|
c.replaceOne(new Document("_id", uuid), d);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -280,7 +280,7 @@ public class MongoDao extends AbstractDao {
|
|||||||
permsDoc.append(e.getKey(), e.getValue());
|
permsDoc.append(e.getKey(), e.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
d.put("perms", perms);
|
d.put("perms", permsDoc);
|
||||||
c.replaceOne(new Document("_id", holder), d);
|
c.replaceOne(new Document("_id", holder), d);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user