added correct category ids
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user