mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-26 08:43:30 +00:00
Update DatabaseHelper.java
fix account delete
This commit is contained in:
parent
f45e01d0f9
commit
766c935b7e
@ -128,6 +128,8 @@ public final class DatabaseHelper {
|
||||
player.getSession().close();
|
||||
|
||||
// Delete data from collections
|
||||
DatabaseManager.getGameDatabase().getCollection("activities").deleteMany(eq("uid",player.getUid()));
|
||||
DatabaseManager.getGameDatabase().getCollection("homes").deleteMany(eq("ownerUid",player.getUid()));
|
||||
DatabaseManager.getGameDatabase().getCollection("mail").deleteMany(eq("ownerUid", player.getUid()));
|
||||
DatabaseManager.getGameDatabase().getCollection("avatars").deleteMany(eq("ownerId", player.getUid()));
|
||||
DatabaseManager.getGameDatabase().getCollection("gachas").deleteMany(eq("ownerId", player.getUid()));
|
||||
|
Loading…
Reference in New Issue
Block a user