added correct category ids

This commit is contained in:
Polaris
2024-07-23 15:34:53 -04:00
parent 3420bad643
commit 4bfce2e630
3 changed files with 69 additions and 24 deletions

View File

@ -181,7 +181,7 @@ export async function getAllAimeCards() {
}
export async function getAllAvatarParts() {
export async function getAllAvatarParts(category: number) {
const { user } = await getAuth();
if (!user || !user.accessCode) {
@ -190,7 +190,7 @@ export async function getAllAvatarParts() {
const avatarParts = await artemis.chuni_static_avatar.findMany({
where: {
category: 1
category: category
},
select: {
id: true,