The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
I18n CI and small type improvement (#10092)
Félix Malfaitf9d7f62ec251
diff --git a/.github/workflows/i18n-force-pull.yml b/.github/workflows/i18n-force-pull.ymlindex 469b2959559..457264194e2 100644--- a/.github/workflows/i18n-force-pull.yml+++ b/.github/workflows/i18n-force-pull.yml@@ -26,7 +26,8 @@ jobs:- name: Checkoutuses: actions/checkout@v4- - uses: ./.github/actions/node-install+ - name: Install dependencies+ uses: ./.github/workflows/actions/yarn-install- name: Pull translations from Crowdinuses: crowdin/github-action@v2diff --git a/.github/workflows/i18n-pull.yaml b/.github/workflows/i18n-pull.yamlindex 8bf75820e7d..8a9eef4eaea 100644--- a/.github/workflows/i18n-pull.yaml+++ b/.github/workflows/i18n-pull.yaml@@ -24,7 +24,8 @@ jobs:- name: Checkoutuses: actions/checkout@v4- - uses: ./.github/actions/node-install+ - name: Install dependencies+ uses: ./.github/workflows/actions/yarn-install- name: Compile translationsid: compile_translationsdiff --git a/.github/workflows/i18n-upload.yml b/.github/workflows/i18n-upload.ymlindex 9f3fbbb326b..8e6ebfc3d48 100644--- a/.github/workflows/i18n-upload.yml+++ b/.github/workflows/i18n-upload.yml@@ -22,7 +22,8 @@ jobs:with:token: ${{ github.token }}- - uses: ./.github/actions/node-install+ - name: Install dependencies+ uses: ./.github/workflows/actions/yarn-install- name: Extract translationsrun: |diff --git a/packages/twenty-server/src/engine/core-modules/client-config/client-config.resolver.ts b/packages/twenty-server/src/engine/core-modules/client-config/client-config.resolver.tsindex 2a195bbf899..4cd073fd0ea 100644--- a/packages/twenty-server/src/engine/core-modules/client-config/client-config.resolver.ts+++ b/packages/twenty-server/src/engine/core-modules/client-config/client-config.resolver.ts@@ -52,7 +52,8 @@ export class ClientConfigResolver {),defaultSubdomain: this.environmentService.get('DEFAULT_SUBDOMAIN'),frontDomain: this.domainManagerService.getFrontUrl().hostname,- debugMode: this.environmentService.get('NODE_ENV') === 'development',+ debugMode:+ this.environmentService.get('NODE_ENV') === NodeEnvironment.development,support: {supportDriver: this.environmentService.get('SUPPORT_DRIVER'),supportFrontChatId: this.environmentService.get(diff --git a/packages/twenty-server/src/engine/core-modules/exception-handler/exception-handler.module-factory.ts b/packages/twenty-server/src/engine/core-modules/exception-handler/exception-handler.module-factory.tsindex 54fb228d1ae..75a2fadfd46 100644--- a/packages/twenty-server/src/engine/core-modules/exception-handler/exception-handler.module-factory.ts+++ b/packages/twenty-server/src/engine/core-modules/exception-handler/exception-handler.module-factory.ts@@ -1,5 +1,7 @@import { HttpAdapterHost } from '@nestjs/core';+import { NodeEnvironment } from 'src/engine/core-modules/environment/interfaces/node-environment.interface';+import { EnvironmentService } from 'src/engine/core-modules/environment/environment.service';import { OPTIONS_TYPE } from 'src/engine/core-modules/exception-handler/exception-handler.module-definition';import { ExceptionHandlerDriver } from 'src/engine/core-modules/exception-handler/interfaces';@@ -30,7 +32,8 @@ export const exceptionHandlerModuleFactory = async (release: environmentService.get('SENTRY_RELEASE'),dsn: environmentService.get('SENTRY_DSN') ?? '',serverInstance: adapterHost.httpAdapter?.getInstance(),- debug: environmentService.get('NODE_ENV') === 'development',+ debug:+ environmentService.get('NODE_ENV') === NodeEnvironment.development,},};}