Fix user-pastes

This commit is contained in:
UltraLionFr
2025-08-20 18:13:45 +02:00
parent f4dd4177c7
commit f620af83be
+2 -2
View File
@@ -17,7 +17,7 @@ export async function GET(req: Request) {
const search = searchParams.get('q') || '';
const filter: Prisma.PasteWhereInput = {
const filter = {
createdBy: session.user.id,
...(search
? {
@@ -27,7 +27,7 @@ export async function GET(req: Request) {
},
}
: {}),
};
} as const;
const [pastes, total] = await Promise.all([
prisma.paste.findMany({