Testing disconnect

This commit is contained in:
zomars
2023-02-08 19:30:03 -07:00
parent 2248d7069f
commit 0389ebfed5
+1
View File
@@ -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();
};