🐞 fix(后台): 删除账号时删除宝物
This commit is contained in:
@@ -91,6 +91,7 @@ import { ACTIVITY_RESOURCES_TYPE } from "../consts";
|
||||
import { gameData } from "./data";
|
||||
import { ActivityTaskPassModel } from "../db/ActivityTaskPass";
|
||||
import { LadderMatchModel } from "../db/LadderMatch";
|
||||
import { ArtifactModel } from "../db/Artifact";
|
||||
|
||||
export async function deletRole(roleId: string) {
|
||||
let role = await RoleModel.findByRoleId(roleId, null, true, true);
|
||||
@@ -98,6 +99,7 @@ export async function deletRole(roleId: string) {
|
||||
if(role.hasInit) {
|
||||
|
||||
|
||||
await ArtifactModel.deleteMany({roleId});
|
||||
await ActionPointModel.deleteMany({roleId});
|
||||
await ActivityBuyRecordsModel.deleteMany({ roleId });
|
||||
await ActivityDailyChallengesModel.deleteMany({ roleId });
|
||||
|
||||
Reference in New Issue
Block a user