Fix avatar removeall
This commit is contained in:
parent
f502f32434
commit
0098da757c
@ -41,7 +41,7 @@ export default async function handle(command: Command) {
|
||||
}
|
||||
case "removeall": {
|
||||
for (const id in AvatarExcelTable) {
|
||||
if (!(id == '1001')) {
|
||||
if (Number(id) !== 1001) {
|
||||
await Avatar.remove(uid, parseInt(id));
|
||||
}
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ export default class Avatar {
|
||||
|
||||
public static async remove(ownerUid: UID, baseAvatarId: number): Promise<void> {
|
||||
const db = Database.getInstance();
|
||||
await db.delete("avatars", { ownerUid, baseAvatarId });
|
||||
await db.delete("avatars", { ownerUid, "data.baseAvatarId": baseAvatarId });
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user