Skip to content

Commit

Permalink
Fix DrizzleSQLiteAdapter constructor signature (#1426)
Browse files Browse the repository at this point in the history
Co-authored-by: pilcrowOnPaper <pilcrowonpaper@gmail.com>
  • Loading branch information
yu7400ki and pilcrowOnPaper authored Feb 15, 2024
1 parent c42a299 commit 0b86518
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/adapter-drizzle/src/drivers/mysql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import type { MySqlColumn, MySqlDatabase, MySqlTableWithColumns } from "drizzle-
import type { InferSelectModel } from "drizzle-orm";

export class DrizzleMySQLAdapter implements Adapter {
private db: MySqlDatabase<any, any>;
private db: MySqlDatabase<any, any, any>;

private sessionTable: MySQLSessionTable;
private userTable: MySQLUserTable;

constructor(
db: MySqlDatabase<any, any>,
db: MySqlDatabase<any, any, any>,
sessionTable: MySQLSessionTable,
userTable: MySQLUserTable
) {
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-drizzle/src/drivers/postgresql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import type { PgColumn, PgDatabase, PgTableWithColumns } from "drizzle-orm/pg-co
import type { InferSelectModel } from "drizzle-orm";

export class DrizzlePostgreSQLAdapter implements Adapter {
private db: PgDatabase<any, any>;
private db: PgDatabase<any, any, any>;

private sessionTable: PostgreSQLSessionTable;
private userTable: PostgreSQLUserTable;

constructor(
db: PgDatabase<any, any>,
db: PgDatabase<any, any, any>,
sessionTable: PostgreSQLSessionTable,
userTable: PostgreSQLUserTable
) {
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-drizzle/src/drivers/sqlite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class DrizzleSQLiteAdapter implements Adapter {
private userTable: SQLiteUserTable;

constructor(
db: BaseSQLiteDatabase<any, any>,
db: BaseSQLiteDatabase<any, any, any>,
sessionTable: SQLiteSessionTable,
userTable: SQLiteUserTable
) {
Expand Down

0 comments on commit 0b86518

Please sign in to comment.