Prisma with Sapphire
Hello, im new to sapphire framework.. but i have question why it does not work?
The bot dont start at all or even the prints doesnt get printed.. why ?
Solution:Jump to solution
Well from starters you don't need to extend the client and override login like you do
https://github.com/favware/xiveventbuddy/blob/main/src/lib/setup/prisma.ts
https://github.com/favware/xiveventbuddy/blob/main/src/lib/setup/all.ts
https://github.com/favware/xiveventbuddy/blob/main/src/xiveventbuddy.ts...
2 Replies
Solution
Well from starters you don't need to extend the client and override login like you do
https://github.com/favware/xiveventbuddy/blob/main/src/lib/setup/prisma.ts
https://github.com/favware/xiveventbuddy/blob/main/src/lib/setup/all.ts
https://github.com/favware/xiveventbuddy/blob/main/src/xiveventbuddy.ts
you also dont need to call disconnect. That's why it's $disconnect, it's meant for internal use. The process exists on destroy so the database connection will get cleaned automatically.
Outside of that though I'm not entirely sure but I think it might be related to that you're not spreading parameters in the constructor to the super call.
Okay I'll try it like this.