79513118

Date: 2025-03-16 19:41:49
Score: 0.5
Natty:
Report link

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();
    });
  }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Okonkwo Clovis Saintiano