From 8b8fa97637ac3ce74e35dd9b67ea7b78dafb3a9c Mon Sep 17 00:00:00 2001 From: Zxilly Date: Wed, 21 Apr 2021 16:58:01 +0800 Subject: [PATCH 1/2] fix: fix constuctor --- src/adapter.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/adapter.ts b/src/adapter.ts index c47a1bb..153b7de 100644 --- a/src/adapter.ts +++ b/src/adapter.ts @@ -9,6 +9,11 @@ export class PrismaAdapter implements Adapter { #option?: Prisma.PrismaClientOptions; #prisma: PrismaClient; + + /** + * @param option It should be PrismaClientOptions or PrismaClient. + * You should later call open() to activate it. + */ constructor(option?: Prisma.PrismaClientOptions | PrismaClient) { if (option instanceof PrismaClient) { this.#prisma = option; From 31395cef28551d0126fccfa3dd1e814146877661 Mon Sep 17 00:00:00 2001 From: Zxilly Date: Wed, 21 Apr 2021 17:11:42 +0800 Subject: [PATCH 2/2] fix: format fix --- src/adapter.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/adapter.ts b/src/adapter.ts index 153b7de..af28e5b 100644 --- a/src/adapter.ts +++ b/src/adapter.ts @@ -9,7 +9,6 @@ export class PrismaAdapter implements Adapter { #option?: Prisma.PrismaClientOptions; #prisma: PrismaClient; - /** * @param option It should be PrismaClientOptions or PrismaClient. * You should later call open() to activate it.