diff --git a/components/(customization)/avatarcustomization/actions.ts b/components/(customization)/avatarcustomization/actions.ts index a5a571d..b3d615b 100644 --- a/components/(customization)/avatarcustomization/actions.ts +++ b/components/(customization)/avatarcustomization/actions.ts @@ -14,7 +14,7 @@ export async function getCurrentAvatarParts() { throw new Error("User is not authenticated or accessCode is missing"); } - const avatarParts = await artemis.chuni_profile_data.findMany({ + const CurrentAvatarParts = await artemis.chuni_profile_data.findMany({ where: { user: user.UserId, }, @@ -28,7 +28,7 @@ export async function getCurrentAvatarParts() { avatarWear: true, }, }); - return avatarParts; + return CurrentAvatarParts; } export async function getAllAvatarParts(category: number) { @@ -38,7 +38,7 @@ export async function getAllAvatarParts(category: number) { throw new Error("User is not authenticated or accessCode is missing"); } - const avatarParts = await artemis.chuni_static_avatar.findMany({ + const AllAvatarParts = await artemis.chuni_static_avatar.findMany({ where: { category: category, }, @@ -52,5 +52,5 @@ export async function getAllAvatarParts(category: number) { texturePath: true, }, }); - return avatarParts; + return AllAvatarParts; } diff --git a/components/(customization)/mapiconcustomization/actions.ts b/components/(customization)/mapiconcustomization/actions.ts index df46d2b..81c09c9 100644 --- a/components/(customization)/mapiconcustomization/actions.ts +++ b/components/(customization)/mapiconcustomization/actions.ts @@ -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; } diff --git a/components/(customization)/nameplatecustomization/actions.ts b/components/(customization)/nameplatecustomization/actions.ts index a089b6c..377007d 100644 --- a/components/(customization)/nameplatecustomization/actions.ts +++ b/components/(customization)/nameplatecustomization/actions.ts @@ -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; } diff --git a/components/(customization)/systemvoicecustomization/actions.ts b/components/(customization)/systemvoicecustomization/actions.ts index 51db2af..5691f68 100644 --- a/components/(customization)/systemvoicecustomization/actions.ts +++ b/components/(customization)/systemvoicecustomization/actions.ts @@ -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; } diff --git a/components/(customization)/trophycustomization/actions.ts b/components/(customization)/trophycustomization/actions.ts index e3c5f47..135e582 100644 --- a/components/(customization)/trophycustomization/actions.ts +++ b/components/(customization)/trophycustomization/actions.ts @@ -11,7 +11,7 @@ export async function getCurrentTrophies() { throw new Error("User is not authenticated or accessCode is missing"); } - const avatarParts = await artemis.chuni_profile_data.findMany({ + const CurrentTrophy = await artemis.chuni_profile_data.findMany({ where: { user: user.UserId, }, @@ -19,7 +19,7 @@ export async function getCurrentTrophies() { trophyId: true, }, }); - return avatarParts; + return CurrentTrophy; } export async function getTrophies() { @@ -29,16 +29,17 @@ export async function getTrophies() { throw new Error("User is not authenticated or accessCode is missing"); } - const staticTrophies = await artemis.cozynet_chuni_static_trophies.findMany({ - select: { - category: true, - netOpenName: true, - id: true, - str: true, - imagePath: true, - rareType: true, - sortName: true, - }, - }); - return staticTrophies; + const AllStaticTrophies = + await artemis.cozynet_chuni_static_trophies.findMany({ + select: { + category: true, + netOpenName: true, + id: true, + str: true, + imagePath: true, + rareType: true, + sortName: true, + }, + }); + return AllStaticTrophies; }