We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09cddcb commit 86f844eCopy full SHA for 86f844e
drizzle-orm/src/vercel-postgres/session.ts
@@ -321,7 +321,7 @@ export class VercelPgSession<
321
await tx.execute(sql`rollback`);
322
throw error;
323
} finally {
324
- if (this.client instanceof VercelPool) { // oxlint-disable-line drizzle-internal/no-instanceof
+ if (typeof this.client === 'function' || this.client instanceof VercelPool) { // oxlint-disable-line drizzle-internal/no-instanceof
325
(session.client as VercelPoolClient).release();
326
}
327
0 commit comments