Skip to content

Commit

Permalink
docs: correct prisma delete session syntax (#1738)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-marinov authored Nov 2, 2024
1 parent 7f641da commit 46b164f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/sessions/basic-api/prisma.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 } });
}
```

Expand Down

0 comments on commit 46b164f

Please sign in to comment.