variable clean up
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user