Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PrismaAdapter for prisma 4 (#39) #40

Merged
merged 3 commits into from
Aug 19, 2022
Merged

Fix PrismaAdapter for prisma 4 (#39) #40

merged 3 commits into from
Aug 19, 2022

Conversation

foyarash
Copy link
Contributor

@foyarash foyarash commented Aug 19, 2022

Fixes DMMF compatibility for Prisma 4 that was causing a crash (cf #39)

Adds a breaking change in the way of creating the handler, because the dmmf retrieving of Prisma 4 is asynchronous.

Adds an init method in the adapters that allows adding asynchronous code. The method is called before the handler is created.

@foyarash foyarash requested a review from tlenclos August 19, 2022 12:42
@foyarash foyarash merged commit 16257be into master Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants