From d77de3b6bc8946b0644a801ebd161ff5f4c6c3c1 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Tue, 2 Dec 2025 17:24:42 +0000 Subject: [PATCH] logging --- client/src/components/inputs/SwitchSettings.tsx | 8 +++++--- server/src/index.ts | 7 ------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/client/src/components/inputs/SwitchSettings.tsx b/client/src/components/inputs/SwitchSettings.tsx index 01886b78c..5d3a0a1c0 100644 --- a/client/src/components/inputs/SwitchSettings.tsx +++ b/client/src/components/inputs/SwitchSettings.tsx @@ -12,9 +12,6 @@ import { Tooltip } from "@/components/design-elements"; const DEPLOYMENT_MODE = import.meta.env.VITE_APP_DEPLOYMENT_MODE; const IS_SAAS = DEPLOYMENT_MODE === "saas"; -console.log("Deployment mode:", DEPLOYMENT_MODE); -console.log("Is SaaS:", IS_SAAS); - export const SettingsSwitch = () => { const navigate = useNavigate(); const theme = useTheme(); @@ -57,6 +54,11 @@ export const SettingsSwitch = () => { const hasMaster = orgPermissions.includes("master"); + console.log(JSON.stringify(user, null, 2)); + console.log("Deplyoment mode:", DEPLOYMENT_MODE); + console.log("isSaas:", IS_SAAS); + console.log("hasBilling", hasBilling); + return ( <> diff --git a/server/src/index.ts b/server/src/index.ts index a2ffc167c..8623fc803 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -18,13 +18,6 @@ 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(