1
0
mirror of https://github.com/lucko/LuckPerms.git synced 2025-09-09 05:40:47 +02:00

Fix duplicate UUID delete with Mongo storage (#3777)

This commit is contained in:
huanmeng_qwq
2023-11-07 05:57:08 +08:00
committed by GitHub
parent 84fce987d5
commit f999f9f234
2 changed files with 30 additions and 2 deletions

View File

@@ -549,7 +549,7 @@ public class MongoStorage implements StorageImplementation {
if (!conflicting.isEmpty()) {
// remove the mappings for conflicting uuids
c.deleteMany(Filters.and(conflicting.stream().map(u -> Filters.eq("_id", u)).collect(Collectors.toList())));
c.deleteMany(Filters.or(conflicting.stream().map(u -> Filters.eq("_id", u)).collect(Collectors.toList())));
result = result.withOtherUuidsPresent(conflicting);
}