Testing disconnect
This commit is contained in:
1 parent
2248d7069f
commit
0389ebfed5
1 file changed
+1
@@ -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();
|
||||
};
|
||||
Reference in new issue
Block a user