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