From 766c935b7e51b451a94dfa1c0e06114ea6099e2d Mon Sep 17 00:00:00 2001 From: dragon Date: Fri, 8 Jul 2022 12:37:40 +0800 Subject: [PATCH] Update DatabaseHelper.java fix account delete --- src/main/java/emu/grasscutter/database/DatabaseHelper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/emu/grasscutter/database/DatabaseHelper.java b/src/main/java/emu/grasscutter/database/DatabaseHelper.java index 1178ddc47..6d64a686f 100644 --- a/src/main/java/emu/grasscutter/database/DatabaseHelper.java +++ b/src/main/java/emu/grasscutter/database/DatabaseHelper.java @@ -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()));