Skip to content

Commit f68c909

Browse files
meeechnikolasburk
andauthored
Cleanup
Co-authored-by: Nikolas <[email protected]>
1 parent 6ab6409 commit f68c909

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/recipes/prisma.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ export class PrismaService extends PrismaClient
266266
}
267267
```
268268

269-
> info **Note** The `onModuleInit` is optional - if you leave it out, Prisma will connect lazily on first call to db. We don't bother with `onModuleDestroy`, since Prisma has its own shutdown hooks where it will destroy the connection. For more info on `enableShutdownHooks`, please see [Issues with `enableShutdownHooks`](#issues-with-enableShutdownHooks)
269+
> info **Note** The `onModuleInit` is optional if you leave it out, Prisma will connect lazily on its first call to the database. We don't bother with `onModuleDestroy`, since Prisma has its own shutdown hooks where it will destroy the connection. For more info on `enableShutdownHooks`, please see [Issues with `enableShutdownHooks`](#issues-with-enableShutdownHooks)
270270
271271
Next, you can write services that you can use to make database calls for the `User` and `Post` models from your Prisma schema.
272272

@@ -523,7 +523,7 @@ This controller implements the following routes:
523523

524524
#### Issues with `enableShutdownHooks`
525525

526-
Prisma interferes with NestJS `enableShutdownHooks`. Prisma listens for shutdown signals and will call process.exit() before your application shutdown hooks fire. To deal with this, you would need to add a listener for Prisma `beforeExit` event.
526+
Prisma interferes with NestJS `enableShutdownHooks`. Prisma listens for shutdown signals and will call `process.exit()` before your application shutdown hooks fire. To deal with this, you would need to add a listener for Prisma `beforeExit` event.
527527

528528
```typescript
529529
// main.ts

0 commit comments

Comments
 (0)