Skip to content

Commit 3469515

Browse files
authored
fix: allow newAdapter() function to accept a PrismaClient as well (#42)
1 parent c2ad235 commit 3469515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export class PrismaAdapter implements Adapter {
144144
}
145145

146146
static async newAdapter(
147-
option?: Prisma.PrismaClientOptions
147+
option?: Prisma.PrismaClientOptions | PrismaClient
148148
): Promise<PrismaAdapter> {
149149
const a = new PrismaAdapter(option);
150150
await a.#open();

0 commit comments

Comments
 (0)