diff options
Diffstat (limited to 'db/index.ts')
| -rw-r--r-- | db/index.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/db/index.ts b/db/index.ts index dbf925f4..fa46ca1f 100644 --- a/db/index.ts +++ b/db/index.ts @@ -2,6 +2,8 @@ import { PrismaClient } from "@prisma/client"; const prisma = new PrismaClient(); -export { Prisma } from "@prisma/client"; +// For some weird reason accessing @prisma/client from any package is causing problems (specially in error handling). +// Re export them here instead. +export * from "@prisma/client"; export default prisma; |
