-
Notifications
You must be signed in to change notification settings - Fork 2
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
Global wish #33
base: main
Are you sure you want to change the base?
Global wish #33
Conversation
i forgot to click pull so the shit got duplicated |
Is this pr complete? |
nope |
Closes #24 |
restart |
huh |
src/db/prismaclient.ts
Outdated
@@ -0,0 +1,6 @@ | |||
import { PrismaClient } from '@prisma/client' | |||
|
|||
export const prisma = new PrismaClient(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will return a new instance every time its accessed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
damn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For a single instance you need to wrap the client in a singleton https://en.wikipedia.org/wiki/Singleton_pattern
Quality Gate passedIssues Measures |
global wish counter
based on unique gachaid and date
every day will add to daily pulls table