MySQL database lose Property 'subscription'
Opened this issue · 1 comments
ZhongWwwHhh commented
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 commented
I thought it was lead by #252