Skip to content

Scheduling infrastructure for absolutely everyone.

Fix for multi-tenant users

zomars9af022b663a3
diff --git a/lib/helpers/customPrisma.ts b/lib/helpers/customPrisma.ts
index a09eda7a402..466d6ee8c0a 100644
--- a/lib/helpers/customPrisma.ts
+++ b/lib/helpers/customPrisma.ts
@@ -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();
};