diff --git a/app/api/user-pastes/route.ts b/app/api/user-pastes/route.ts index 7b6b84a..603e169 100644 --- a/app/api/user-pastes/route.ts +++ b/app/api/user-pastes/route.ts @@ -17,7 +17,7 @@ export async function GET(req: Request) { const search = searchParams.get('q') || ''; - const filter = { + const filter: Prisma.PasteWhereInput = { createdBy: session.user.id, ...(search ? {