Fix db imports: use dbUnscoped
This commit is contained in:
parent
2196c3d07d
commit
5acb2760cc
2 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { NextResponse } from "next/server";
|
||||
import { db } from "@/db";
|
||||
import { dbUnscoped as db } from "@/db";
|
||||
import { auth } from "@/auth";
|
||||
import { families, familyMembers, children } from "@/db/schema/family";
|
||||
import { users } from "@/db/schema/auth";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import NextAuth from "next-auth";
|
||||
import { DrizzleAdapter } from "@auth/drizzle-adapter";
|
||||
import { db } from "@/db";
|
||||
import { dbUnscoped as db } from "@/db";
|
||||
|
||||
export const { handlers, auth, signIn, signOut } = NextAuth({
|
||||
adapter: DrizzleAdapter(db),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue