Skip to content

Commit 7d08010

Browse files
authored
Update recipes.md
nestjs的官方文档prisma已无下面这段代码。
1 parent 788dbd2 commit 7d08010

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

11/recipes.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3635,11 +3635,7 @@ export class PrismaService extends PrismaClient implements OnModuleInit {
36353635
await this.$connect();
36363636
}
36373637

3638-
async enableShutdownHooks(app: INestApplication) {
3639-
this.$on('beforeExit', async () => {
3640-
await app.close();
3641-
});
3642-
}
3638+
36433639
}
36443640
```
36453641

0 commit comments

Comments
 (0)