10 lines
236 B
TypeScript
10 lines
236 B
TypeScript
import { Injectable } from "@nestjs/common";
|
|
import { PrismaClient } from "@prisma/client";
|
|
|
|
@Injectable()
|
|
export class PrismaService extends PrismaClient {
|
|
async onModuleDestroy(): Promise<void> {
|
|
await this.$disconnect();
|
|
}
|
|
}
|