diff --git a/examples/bri-3/src/shared/prisma/prisma.service.ts b/examples/bri-3/src/shared/prisma/prisma.service.ts index c19aa9f32..83cc7e1c8 100644 --- a/examples/bri-3/src/shared/prisma/prisma.service.ts +++ b/examples/bri-3/src/shared/prisma/prisma.service.ts @@ -1,12 +1,9 @@ -import { Injectable, OnModuleInit } from '@nestjs/common'; +import { Injectable } from '@nestjs/common'; import { PrismaClient } from '@prisma/client'; @Injectable() -export class PrismaService extends PrismaClient implements OnModuleInit { +export class PrismaService extends PrismaClient { constructor() { super({ log: ['info'] }); } - async onModuleInit() { - await this.$connect(); - } }