Skip to content

Commit

Permalink
Pass context only if it's an object
Browse files Browse the repository at this point in the history
  • Loading branch information
exAspArk committed Apr 11, 2024
1 parent 91d8c71 commit 97b8d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const withPgAdapter = <PrismaClientType>(originalPrisma: PrismaClientType

// There is no context
const context = ASYNC_LOCAL_STORAGE.getStore()
if (!context) return query(args)
if (!context || context.constructor !== Object) return query(args)

log('EXTENSION:', operation, args)

Expand Down

0 comments on commit 97b8d19

Please # to comment.