variable clean up

This commit is contained in:
Polaris
2024-07-28 01:16:27 -04:00
parent e113bad219
commit d01a88a645
5 changed files with 42 additions and 41 deletions

View File

@ -11,7 +11,7 @@ export async function getCurrentTrophies() {
throw new Error("User is not authenticated or accessCode is missing");
}
const avatarParts = await artemis.chuni_profile_data.findMany({
const CurrentTrophy = await artemis.chuni_profile_data.findMany({
where: {
user: user.UserId,
},
@ -19,7 +19,7 @@ export async function getCurrentTrophies() {
trophyId: true,
},
});
return avatarParts;
return CurrentTrophy;
}
export async function getTrophies() {
@ -29,16 +29,17 @@ export async function getTrophies() {
throw new Error("User is not authenticated or accessCode is missing");
}
const staticTrophies = await artemis.cozynet_chuni_static_trophies.findMany({
select: {
category: true,
netOpenName: true,
id: true,
str: true,
imagePath: true,
rareType: true,
sortName: true,
},
});
return staticTrophies;
const AllStaticTrophies =
await artemis.cozynet_chuni_static_trophies.findMany({
select: {
category: true,
netOpenName: true,
id: true,
str: true,
imagePath: true,
rareType: true,
sortName: true,
},
});
return AllStaticTrophies;
}