From 7e9092d2934a40a088d7c71ab01132f8d18d5925 Mon Sep 17 00:00:00 2001 From: Damon <126731021+damon314159@users.noreply.github.com> Date: Sat, 23 Nov 2024 05:52:36 +0000 Subject: [PATCH] Docs: Prisma example return types and var names (#1747) --- pages/sessions/basic-api/prisma.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/sessions/basic-api/prisma.md b/pages/sessions/basic-api/prisma.md index 7cdd694c0..b7481a160 100644 --- a/pages/sessions/basic-api/prisma.md +++ b/pages/sessions/basic-api/prisma.md @@ -165,7 +165,7 @@ import { prisma } from "./db.js"; // ... -export async function invalidateSession(sessionId: string): void { +export async function invalidateSession(sessionId: string): Promise { await prisma.session.delete({ where: { id: sessionId } }); } ``` @@ -231,8 +231,8 @@ export async function validateSessionToken(token: string): Promise { + await prisma.session.delete({ where: { id: sessionId } }); } export type SessionValidationResult =