fix PrismaClient constructor: pass empty object (required prisma v7)

This commit is contained in:
Lizandro Guarnizo
2026-06-03 22:51:03 -05:00
parent 5db8b0a131
commit 41bcf31428
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { PrismaClient } from '@prisma/client';
@Injectable()
export class PrismaService extends PrismaClient implements OnModuleInit, OnModuleDestroy {
constructor() {
super({ datasources: { db: { url: process.env.DATABASE_URL } } });
super({});
}
async onModuleInit() {