The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
5498 create a feature flag is gmail sync v2 enabled (#5501)
bosiraphaelbeaaf335444a
diff --git a/packages/twenty-server/src/database/typeorm-seeds/core/feature-flags.ts b/packages/twenty-server/src/database/typeorm-seeds/core/feature-flags.tsindex d8897c8c77a..7a14e511744 100644--- a/packages/twenty-server/src/database/typeorm-seeds/core/feature-flags.ts+++ b/packages/twenty-server/src/database/typeorm-seeds/core/feature-flags.ts@@ -40,6 +40,11 @@ export const seedFeatureFlags = async (workspaceId: workspaceId,value: true,},+ {+ key: FeatureFlagKeys.IsGmailSyncV2Enabled,+ workspaceId: workspaceId,+ value: true,+ },]).execute();};diff --git a/packages/twenty-server/src/engine/core-modules/feature-flag/feature-flag.entity.ts b/packages/twenty-server/src/engine/core-modules/feature-flag/feature-flag.entity.tsindex bd1991ea0dc..1e0fca48714 100644--- a/packages/twenty-server/src/engine/core-modules/feature-flag/feature-flag.entity.ts+++ b/packages/twenty-server/src/engine/core-modules/feature-flag/feature-flag.entity.ts@@ -21,6 +21,7 @@ export enum FeatureFlagKeys {IsAirtableIntegrationEnabled = 'IS_AIRTABLE_INTEGRATION_ENABLED',IsPostgreSQLIntegrationEnabled = 'IS_POSTGRESQL_INTEGRATION_ENABLED',IsStripeIntegrationEnabled = 'IS_STRIPE_INTEGRATION_ENABLED',+ IsGmailSyncV2Enabled = 'IS_GMAIL_SYNC_V2_ENABLED',}@Entity({ name: 'featureFlag', schema: 'core' })diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/commands/add-standard-id.command.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/commands/add-standard-id.command.tsindex fe789c366ae..81a55686f35 100644--- a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/commands/add-standard-id.command.ts+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/commands/add-standard-id.command.ts@@ -58,6 +58,7 @@ export class AddStandardIdCommand extends CommandRunner {IS_AIRTABLE_INTEGRATION_ENABLED: true,IS_POSTGRESQL_INTEGRATION_ENABLED: true,IS_STRIPE_INTEGRATION_ENABLED: false,+ IS_GMAIL_SYNC_V2_ENABLED: true,},);const standardFieldMetadataCollection = this.standardFieldFactory.create(@@ -72,6 +73,7 @@ export class AddStandardIdCommand extends CommandRunner {IS_AIRTABLE_INTEGRATION_ENABLED: true,IS_POSTGRESQL_INTEGRATION_ENABLED: true,IS_STRIPE_INTEGRATION_ENABLED: false,+ IS_GMAIL_SYNC_V2_ENABLED: true,},);