Skip to content

Scheduling infrastructure for absolutely everyone.

Testing disconnect

zomars0389ebfed5aa
diff --git a/lib/helpers/customPrisma.ts b/lib/helpers/customPrisma.ts
index 466d6ee8c0a..147bc211850 100644
--- a/lib/helpers/customPrisma.ts
+++ b/lib/helpers/customPrisma.ts
@@ -37,4 +37,5 @@ export const customPrismaClient: NextMiddleware = async (req, res, next) => {
// We don't need the key from here and on. Prevents unrecognized key errors.
delete req.query.key;
await next();
+ await req.prisma.$disconnect();
};