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 getCurrentMapIcon() {
throw new Error("User is not authenticated or accessCode is missing");
}
const nameplates = await artemis.chuni_profile_data.findMany({
const currentMapIcon = await artemis.chuni_profile_data.findMany({
where: {
user: user.UserId,
},
@ -22,8 +22,7 @@ export async function getCurrentMapIcon() {
mapIconId: true,
},
});
console.log(nameplates);
return nameplates;
return currentMapIcon;
}
export async function getMapIcons() {
@ -33,7 +32,7 @@ export async function getMapIcons() {
throw new Error("User is not authenticated or accessCode is missing");
}
const nameplates = await artemis.cozynet_chuni_static_mapicon.findMany({
const AllMapIcons = await artemis.cozynet_chuni_static_mapicon.findMany({
select: {
id: true,
str: true,
@ -44,5 +43,5 @@ export async function getMapIcons() {
netOpenName: true,
},
});
return nameplates;
return AllMapIcons;
}