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 getCurrentNameplate() {
throw new Error("User is not authenticated or accessCode is missing");
}
const nameplates = await artemis.chuni_profile_data.findMany({
const currentNameplate = await artemis.chuni_profile_data.findMany({
where: {
user: user.UserId,
},
@ -22,7 +22,7 @@ export async function getCurrentNameplate() {
nameplateId: true,
},
});
return nameplates;
return currentNameplate;
}
export async function getNamePlates() {
@ -32,7 +32,7 @@ export async function getNamePlates() {
throw new Error("User is not authenticated or accessCode is missing");
}
const nameplates = await artemis.cozynet_chuni_static_nameplate.findMany({
const AllNameplates = await artemis.cozynet_chuni_static_nameplate.findMany({
select: {
id: true,
str: true,
@ -43,5 +43,5 @@ export async function getNamePlates() {
netOpenName: true,
},
});
return nameplates;
return AllNameplates;
}