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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user