Spaces:
Build error
Build error
Gmagl commited on
Commit ·
2e04309
1
Parent(s): 6d50388
Fix: db.ts syntax
Browse files- src/lib/db.ts +2 -2
src/lib/db.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
import {
|
| 2 |
|
| 3 |
-
const globalForPrisma = global as unknown as {
|
| 4 |
|
| 5 |
export const prisma = globalForPrisma.prisma || new PrismaClient();
|
| 6 |
|
|
|
|
| 1 |
+
import { PrismaClient } from '@prisma/client';
|
| 2 |
|
| 3 |
+
const globalForPrisma = global as unknown as { prisma: PrismaClient };
|
| 4 |
|
| 5 |
export const prisma = globalForPrisma.prisma || new PrismaClient();
|
| 6 |
|