From 0008b32424a9fe834def51a9347441037b5419b1 Mon Sep 17 00:00:00 2001 From: UltraLionFr Date: Wed, 20 Aug 2025 19:06:37 +0200 Subject: [PATCH] update prisma --- app/api/user-pastes/route.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/api/user-pastes/route.ts b/app/api/user-pastes/route.ts index ef43407..7b6b84a 100644 --- a/app/api/user-pastes/route.ts +++ b/app/api/user-pastes/route.ts @@ -1,6 +1,5 @@ import { authOptions } from '@/lib/auth'; import { prisma } from '@/lib/prisma'; -import * as Prisma from '@prisma/client'; import { getServerSession } from 'next-auth'; import { NextResponse } from 'next/server'; @@ -24,7 +23,7 @@ export async function GET(req: Request) { ? { title: { contains: search, - mode: Prisma.QueryMode.insensitive, + mode: 'insensitive', }, } : {}), @@ -43,4 +42,4 @@ export async function GET(req: Request) { ]); return NextResponse.json({ pastes, total }); -} \ No newline at end of file +}