changed form reset and fixed systemvoice
This commit is contained in:
@ -33,11 +33,11 @@ export async function updatePlayerTrophy(trophyId: number) {
|
||||
}
|
||||
|
||||
if (trophyId === undefined) {
|
||||
throw new Error("nameplateId is required");
|
||||
throw new Error("trophy is required");
|
||||
}
|
||||
|
||||
try {
|
||||
const updatePlayerNameplate = await artemis.chuni_profile_data.update({
|
||||
const updatePlayerTrophies = await artemis.chuni_profile_data.update({
|
||||
where: {
|
||||
user_version: {
|
||||
user: user.UserId,
|
||||
@ -49,11 +49,9 @@ export async function updatePlayerTrophy(trophyId: number) {
|
||||
},
|
||||
});
|
||||
|
||||
console.log(updatePlayerNameplate);
|
||||
|
||||
return updatePlayerNameplate;
|
||||
return updatePlayerTrophies;
|
||||
} catch (error) {
|
||||
console.error("Error updating nameplate:", error);
|
||||
console.error("Error updating trophy:", error);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user