We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd8a99d commit 3e37bbcCopy full SHA for 3e37bbc
packages/db/src/index.ts
@@ -1,16 +1,16 @@
1
import { PrismaClient } from '@prisma/client';
2
3
-const prismaClinentSingleton = () => {
+const prismaClientSingleton = () => {
4
return new PrismaClient;
5
}
6
7
-type PrismaClinentSingleton = ReturnType<typeof prismaClinentSingleton>;
+type PrismaClientSingleton = ReturnType<typeof prismaClientSingleton>;
8
9
const globalForPrisma = globalThis as unknown as {
10
- prisma: PrismaClinentSingleton | undefined;
+ prisma: PrismaClientSingleton | undefined;
11
};
12
13
-const prisma = globalForPrisma.prisma ?? prismaClinentSingleton();
+const prisma = globalForPrisma.prisma ?? prismaClientSingleton();
14
15
export default prisma;
16
0 commit comments