update prisma

This commit is contained in:
UltraLionFr
2025-08-20 19:06:37 +02:00
parent 6cf6412ead
commit 0008b32424
+2 -3
View File
@@ -1,6 +1,5 @@
import { authOptions } from '@/lib/auth'; import { authOptions } from '@/lib/auth';
import { prisma } from '@/lib/prisma'; import { prisma } from '@/lib/prisma';
import * as Prisma from '@prisma/client';
import { getServerSession } from 'next-auth'; import { getServerSession } from 'next-auth';
import { NextResponse } from 'next/server'; import { NextResponse } from 'next/server';
@@ -24,7 +23,7 @@ export async function GET(req: Request) {
? { ? {
title: { title: {
contains: search, contains: search,
mode: Prisma.QueryMode.insensitive, mode: 'insensitive',
}, },
} }
: {}), : {}),
@@ -43,4 +42,4 @@ export async function GET(req: Request) {
]); ]);
return NextResponse.json({ pastes, total }); return NextResponse.json({ pastes, total });
} }