From a9a598941f00930aa5d3836a7a771576508aee56 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Tue, 2 Dec 2025 17:44:44 +0000 Subject: [PATCH] fix --- client/src/components/inputs/SwitchSettings.tsx | 6 ------ server/src/index.ts | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/client/src/components/inputs/SwitchSettings.tsx b/client/src/components/inputs/SwitchSettings.tsx index 366def1c4..759fa8a8d 100644 --- a/client/src/components/inputs/SwitchSettings.tsx +++ b/client/src/components/inputs/SwitchSettings.tsx @@ -65,12 +65,6 @@ export const SettingsSwitch = () => { const hasMaster = perms.includes("master"); - console.log(JSON.stringify(user, null, 2)); - console.log("Deplyoment mode:", DEPLOYMENT_MODE); - console.log("isSaas:", IS_SAAS); - console.log("orgPermissions at render", orgPermissions); - console.log("showBilling", showBilling); - return ( <> diff --git a/server/src/index.ts b/server/src/index.ts index 8623fc803..a2ffc167c 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -18,6 +18,13 @@ const createApp = async () => { const services = await initServices(); const controllers = initControllers(services); const app = express(); + // Stripe webhook requires raw body for signature verification; mount it first + app.post( + "/api/v1/stripe/webhook", + express.raw({ type: "application/json" }) as any, + // Defer to router handler registered later; this preserves raw body + (req, res, next) => next() + ); app.use(express.json()); app.use(cookieParser()); app.use(