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

@ -14,7 +14,7 @@ export async function getCurrentSystemVoice() {
throw new Error("User is not authenticated or accessCode is missing");
}
const nameplates = await artemis.chuni_profile_data.findMany({
const currentSystemVoice = await artemis.chuni_profile_data.findMany({
where: {
user: user.UserId,
},
@ -22,7 +22,7 @@ export async function getCurrentSystemVoice() {
voiceId: true,
},
});
return nameplates;
return currentSystemVoice;
}
export async function getSystemVoices() {
@ -32,16 +32,17 @@ export async function getSystemVoices() {
throw new Error("User is not authenticated or accessCode is missing");
}
const nameplates = await artemis.cozynet_chuni_static_systemvoice.findMany({
select: {
id: true,
str: true,
sortName: true,
category: true,
imagePath: true,
rareType: true,
netOpenName: true,
},
});
return nameplates;
const AllSystemVoices =
await artemis.cozynet_chuni_static_systemvoice.findMany({
select: {
id: true,
str: true,
sortName: true,
category: true,
imagePath: true,
rareType: true,
netOpenName: true,
},
});
return AllSystemVoices;
}