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

MySQL database lose Property 'subscription' #254

Open
ZhongWwwHhh opened this issue Jul 19, 2023 · 1 comment
Open

MySQL database lose Property 'subscription' #254

ZhongWwwHhh opened this issue Jul 19, 2023 · 1 comment

Comments

@ZhongWwwHhh
Copy link

When I use DB_TYPE=mysql, I got this error as run yarn run build:without-migrate

./pages/api/subscription.ts:61:39
Type error: Property 'subscription' does not exist on type 'PrismaClient<PrismaClientOptions, never, DefaultArgs>'.

  59 |     }
  60 |
> 61 |     const subscription = await prisma.subscription.findUnique({
     |                                       ^
  62 |       where: {
  63 |         userId: session.uid
  64 |       },
error Command failed with exit code 1.

And I found a new submit add subscription c82cd09. Sqlite has been changed correctly, but mysql not.

@ZhongWwwHhh
Copy link
Author

I thought it was lead by #252

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

No branches or pull requests

1 participant