Fix for multi-tenant users

pull/9078/head
zomars 2023-01-25 14:14:43 -07:00
parent a4a6660421
commit 9af022b663
1 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ export const customPrismaClient: NextMiddleware = async (req, res, next) => {
*/
req.isAdmin = true;
req.isCustomPrisma = true;
// We don't need the key from here and on. Prevents unrecognized key errors.
delete req.query.key;
await next();
};