check
All checks were successful
deploy-on-main / deploy (push) Successful in 26s

This commit is contained in:
koreacomp5
2025-11-10 21:58:36 +09:00
parent 14c80baeec
commit c5bc8f5b49
6 changed files with 60 additions and 10 deletions

View File

@@ -4,7 +4,7 @@ import prisma from "@/lib/prisma";
export async function GET(req: Request) {
const { searchParams } = new URL(req.url);
const category = searchParams.get("category"); // slug or id
const where: any = {};
const where: any = { status: "active" };
if (category) {
if (category.length === 25 || category.length === 24) {
where.categoryId = category;