Skip to content

Commit

Permalink
fix: test skip type
Browse files Browse the repository at this point in the history
  • Loading branch information
kitravee committed Aug 26, 2024
1 parent 5866c5f commit 372f0b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/web/src/features/auth/lib/adapter.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck

import { DrizzleAdapter } from "@auth/drizzle-adapter";
import { db, users, accounts, sessions, verificationTokens } from "@repo/db";
import { Adapter } from "next-auth/adapters";
import { createUser, getUser } from "./action";
import { SqlFlavorOptions } from "@auth/drizzle-adapter/lib/utils";

// TODO: workaround by force type SqlFlavorOptions
const tmpDB = db as unknown as SqlFlavorOptions;
export const adapter: Adapter = {
...DrizzleAdapter(tmpDB, {
...DrizzleAdapter(db, {
usersTable: users,
accountsTable: accounts,
sessionsTable: sessions,
Expand Down

0 comments on commit 372f0b7

Please sign in to comment.