Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
a96f7f4d
Commit
a96f7f4d
authored
Jul 08, 2022
by
dragon
Browse files
Update DatabaseHelper.java
fix account delete
parent
ad02dacd
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/database/DatabaseHelper.java
View file @
a96f7f4d
...
...
@@ -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
()));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment