Testing disconnect
parent
2248d7069f
commit
0389ebfed5
|
@ -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.
|
// We don't need the key from here and on. Prevents unrecognized key errors.
|
||||||
delete req.query.key;
|
delete req.query.key;
|
||||||
await next();
|
await next();
|
||||||
|
await req.prisma.$disconnect();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue