Skip to content

Commit c694e2d

Browse files
Merge pull request #1404 from shaswatsaxena/patch-1
docs(prisma) update deprecated methods
2 parents 807e2da + 5812bbd commit c694e2d

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
@@ -263,11 +263,11 @@ import { PrismaClient } from '@prisma/client';
263263
export class PrismaService extends PrismaClient
264264
implements OnModuleInit, OnModuleDestroy {
265265
async onModuleInit() {
266-
await this.connect();
266+
await this.$connect();
267267
}
268268

269269
async onModuleDestroy() {
270-
await this.disconnect();
270+
await this.$disconnect();
271271
}
272272
}
273273
```

0 commit comments

Comments
 (0)