File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
apps/web/app/api/uploads/search Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- import { NextApiResponse , NextApiRequest } from 'next' ;
1+ import { NextApiResponse } from 'next' ;
22import { prisma } from '@/app/utils' ;
33import { getUser } from '../../utils' ;
44import { captureException } from '@sentry/nextjs' ;
5- import { NextResponse } from 'next/server' ;
5+ import { NextRequest , NextResponse } from 'next/server' ;
66import { z } from 'zod' ; // Import Zod
77import { Role } from '@prisma/client' ;
88
@@ -15,7 +15,7 @@ const requestBodySchema = z.object({
1515} ) ;
1616
1717// Handles POST requests for fetching user uploads with pagination and filtering support
18- export async function POST ( req : NextApiRequest , res : NextApiResponse ) {
18+ export async function POST ( req : NextRequest , res : NextApiResponse ) {
1919 try {
2020 // console.log(req.body)
2121 const body = await new Response ( req . body ) . json ( ) ;
You can’t perform that action at this time.
0 commit comments