Skip to content

Commit

Permalink
Merge pull request #5 from a-zzura/fix-2
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
pilcrowonpaper authored Oct 14, 2024
2 parents 5894055 + 519072a commit e7a48f4
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 e7a48f4

Please sign in to comment.