Skip to content

Commit

Permalink
docs: fix Promise<void> type for async invalidateSession in DrizzleOR…
Browse files Browse the repository at this point in the history
…M docs (#1715)
  • Loading branch information
dkantereivin authored Oct 20, 2024
1 parent 16f901b commit 3a0f545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/sessions/basic-api/drizzle-orm.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ import { db, userTable, sessionTable } from "./db.js";

// ...

export async function invalidateSession(sessionId: string): void {
export async function invalidateSession(sessionId: string): Promise<void> {
await db.delete(sessionTable).where(eq(sessionTable.id, sessionId));
}
```
Expand Down

0 comments on commit 3a0f545

Please sign in to comment.