Skip to content

Commit 4a44c67

Browse files
committed
chore(prisma): import local generated PrismaClient instead of @prisma/client
1 parent 7514e6a commit 4a44c67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/api/plugins/prisma.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type Hapi from '@hapi/hapi';
2-
import { PrismaClient } from '@prisma/client';
2+
import { PrismaClient } from '../../../prisma/generated/prisma-client';
33

44
// plugin to instantiate Prisma Client
55
const prismaPlugin: Hapi.Plugin<null> = {

src/api/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Hapi from '@hapi/hapi';
2-
import type { PrismaClient } from '@prisma/client';
32
import fs from 'node:fs/promises';
3+
import type { PrismaClient } from '../../prisma/generated/prisma-client';
44
import { env } from '../env.js';
55

66
declare module '@hapi/hapi' {

0 commit comments

Comments
 (0)