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