Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zzura authored Oct 13, 2024
1 parent 9c22a51 commit 519072a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/sessions/basic-api/drizzle-orm.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ import { db, userTable, sessionTable } from "./db.js";
// ...

export async function invalidateSession(sessionId: string): void {
await db.delete(sessionTable).where(eq(sessionTable.id, session.id));
await db.delete(sessionTable).where(eq(sessionTable.id, sessionId));
}
```

Expand Down Expand Up @@ -292,7 +292,7 @@ export async function validateSessionToken(token: string): Promise<SessionValida
}

export async function invalidateSession(sessionId: string): void {
await db.delete(sessionTable).where(eq(sessionTable.id, session.id));
await db.delete(sessionTable).where(eq(sessionTable.id, sessionId));
}

export type SessionValidationResult =
Expand Down

0 comments on commit 519072a

Please sign in to comment.