This is deprecated from prisma V5
async enableShutdownHooks(app: INestApplication) {
this.$on('beforeExit', async () => {
await app.close();
});
}
Replace the above with this
async enableShutdownHooks(app: INestApplication) {
process.on('beforeExit', () => {
app.close();
});
}