10 lines
286 B
TypeScript
10 lines
286 B
TypeScript
import { Injectable, OnModuleDestroy } from '@nestjs/common';
|
|
import { PrismaClient } from '@lisglosips/database';
|
|
|
|
@Injectable()
|
|
export class PrismaService extends PrismaClient implements OnModuleDestroy {
|
|
async onModuleDestroy(): Promise<void> {
|
|
await this.$disconnect();
|
|
}
|
|
}
|