From d77ad1052c47f84a42213c4e04f0a9b7292e4ab7 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Sat, 20 Apr 2024 00:10:53 +0200 Subject: [PATCH] Fix demo workspace seed --- .../timeline/standard-objects/audit-log.object-metadata.ts | 5 ----- .../standard-objects/timeline-activity.object-metadata.ts | 5 ----- 2 files changed, 10 deletions(-) diff --git a/packages/twenty-server/src/modules/timeline/standard-objects/audit-log.object-metadata.ts b/packages/twenty-server/src/modules/timeline/standard-objects/audit-log.object-metadata.ts index 7adda5dfda..1aba7b2c27 100644 --- a/packages/twenty-server/src/modules/timeline/standard-objects/audit-log.object-metadata.ts +++ b/packages/twenty-server/src/modules/timeline/standard-objects/audit-log.object-metadata.ts @@ -1,11 +1,9 @@ import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface'; -import { FeatureFlagKeys } from 'src/engine/core-modules/feature-flag/feature-flag.entity'; import { FieldMetadataType } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity'; import { auditLogStandardFieldIds } from 'src/engine/workspace-manager/workspace-sync-metadata/constants/standard-field-ids'; import { standardObjectIds } from 'src/engine/workspace-manager/workspace-sync-metadata/constants/standard-object-ids'; import { FieldMetadata } from 'src/engine/workspace-manager/workspace-sync-metadata/decorators/field-metadata.decorator'; -import { Gate } from 'src/engine/workspace-manager/workspace-sync-metadata/decorators/gate.decorator'; import { IsNullable } from 'src/engine/workspace-manager/workspace-sync-metadata/decorators/is-nullable.decorator'; import { IsSystem } from 'src/engine/workspace-manager/workspace-sync-metadata/decorators/is-system.decorator'; import { ObjectMetadata } from 'src/engine/workspace-manager/workspace-sync-metadata/decorators/object-metadata.decorator'; @@ -21,9 +19,6 @@ import { WorkspaceMemberObjectMetadata } from 'src/modules/workspace-member/stan icon: 'IconIconTimelineEvent', }) @IsSystem() -@Gate({ - featureFlag: FeatureFlagKeys.IsEventObjectEnabled, -}) export class AuditLogObjectMetadata extends BaseObjectMetadata { @FieldMetadata({ standardId: auditLogStandardFieldIds.name, diff --git a/packages/twenty-server/src/modules/timeline/standard-objects/timeline-activity.object-metadata.ts b/packages/twenty-server/src/modules/timeline/standard-objects/timeline-activity.object-metadata.ts index 5532615e74..1bf1ea9f80 100644 --- a/packages/twenty-server/src/modules/timeline/standard-objects/timeline-activity.object-metadata.ts +++ b/packages/twenty-server/src/modules/timeline/standard-objects/timeline-activity.object-metadata.ts @@ -14,8 +14,6 @@ import { CompanyObjectMetadata } from 'src/modules/company/standard-objects/comp import { OpportunityObjectMetadata } from 'src/modules/opportunity/standard-objects/opportunity.object-metadata'; import { PersonObjectMetadata } from 'src/modules/person/standard-objects/person.object-metadata'; import { WorkspaceMemberObjectMetadata } from 'src/modules/workspace-member/standard-objects/workspace-member.object-metadata'; -import { FeatureFlagKeys } from 'src/engine/core-modules/feature-flag/feature-flag.entity'; -import { Gate } from 'src/engine/workspace-manager/workspace-sync-metadata/decorators/gate.decorator'; import { CustomObjectMetadata } from 'src/engine/workspace-manager/workspace-sync-metadata/custom-objects/custom.object-metadata'; @ObjectMetadata({ @@ -28,9 +26,6 @@ import { CustomObjectMetadata } from 'src/engine/workspace-manager/workspace-syn }) @IsSystem() @IsNotAuditLogged() -@Gate({ - featureFlag: FeatureFlagKeys.IsEventObjectEnabled, -}) export class TimelineActivityObjectMetadata extends BaseObjectMetadata { @FieldMetadata({ standardId: timelineActivityStandardFieldIds.happensAt,