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