Server/src/modules/prisma/prisma.service.ts

10 lines
258 B
TypeScript
Raw Normal View History

2024-11-25 12:17:49 +00:00
import { Injectable, OnModuleInit } from "@nestjs/common";
import { PrismaClient } from "@prisma/client";
@Injectable()
export class PrismaService extends PrismaClient implements OnModuleInit {
async onModuleInit() {
await this.$connect();
}
}