diff --git a/pages/sessions/basic-api/prisma.md b/pages/sessions/basic-api/prisma.md index 4056e7fc1..7cdd694c0 100644 --- a/pages/sessions/basic-api/prisma.md +++ b/pages/sessions/basic-api/prisma.md @@ -166,7 +166,7 @@ import { prisma } from "./db.js"; // ... export async function invalidateSession(sessionId: string): void { - await prisma.session.delete(sessionId); + await prisma.session.delete({ where: { id: sessionId } }); } ```