From ccf0a40b67511981f840fd67e349548a4d9634ad Mon Sep 17 00:00:00 2001 From: zomars Date: Fri, 14 Oct 2022 11:42:05 -0600 Subject: [PATCH] Misc fixes --- lib/validations/booking.ts | 1 + next-i18next.config.js | 1 + tsconfig.json | 27 +++++++++++++++++++++------ 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/lib/validations/booking.ts b/lib/validations/booking.ts index d5ee93da3e..72f1e10be5 100644 --- a/lib/validations/booking.ts +++ b/lib/validations/booking.ts @@ -10,6 +10,7 @@ const schemaBookingBaseBodyParams = Booking.pick({ userId: true, eventTypeId: true, title: true, + description: true, startTime: true, endTime: true, }).partial(); diff --git a/next-i18next.config.js b/next-i18next.config.js index 402b72363c..c985d846fc 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -4,6 +4,7 @@ const i18nConfig = require("@calcom/config/next-i18next.config"); /** @type {import("next-i18next").UserConfig} */ const config = { ...i18nConfig, + localeDetection: false, localePath: path.resolve("../web/public/static/locales"), }; diff --git a/tsconfig.json b/tsconfig.json index 3b72d5ec74..3e4341ce5e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,14 +2,29 @@ "extends": "@calcom/tsconfig/nextjs.json", "compilerOptions": { "strict": true, - "jsx": "react-jsx", + "jsx": "preserve", "baseUrl": ".", "paths": { - "@api/*": ["pages/api/*"], - "@lib/*": ["lib/*"], - "@/*": ["*"] + "@api/*": [ + "pages/api/*" + ], + "@lib/*": [ + "lib/*" + ], + "@/*": [ + "*" + ] } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "../../packages/types/next-auth.d.ts"], - "exclude": ["node_modules", "templates", "auth"] + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + "../../packages/types/next-auth.d.ts" + ], + "exclude": [ + "node_modules", + "templates", + "auth" + ] }