Delete player when deleting account

This commit is contained in:
Melledy
2025-11-14 06:14:31 -08:00
parent 3b9cbf88a9
commit 66c6554bb9
8 changed files with 98 additions and 25 deletions
@@ -4,6 +4,7 @@ import org.bson.types.ObjectId;
import dev.morphia.annotations.Entity;
import dev.morphia.annotations.Id;
import dev.morphia.annotations.Indexed;
import emu.nebula.data.resources.GachaDef;
import emu.nebula.data.resources.GachaDef.GachaPackage;
import emu.nebula.data.resources.GachaPkgDef;
@@ -18,8 +19,9 @@ public class GachaBannerInfo implements GameDatabaseObject {
@Id
private ObjectId id;
private int bannerId;
@Indexed
private int playerUid;
private int bannerId;
private int total;
private int missTimesA;
@@ -29,8 +29,8 @@ public class GachaManager extends PlayerManager {
}
return this.bannerInfos.computeIfAbsent(
gachaData.getId(),
i -> new GachaBannerInfo(this.getPlayer(), gachaData)
gachaData.getId(),
i -> new GachaBannerInfo(this.getPlayer(), gachaData)
);
}