The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix activity creation (#2686)
Weikoc395955f123a
diff --git a/server/src/workspace/workspace-manager/standard-objects/activity.ts b/server/src/workspace/workspace-manager/standard-objects/activity.tsindex 62bd3bb9991..b0a8c15332d 100644--- a/server/src/workspace/workspace-manager/standard-objects/activity.ts+++ b/server/src/workspace/workspace-manager/standard-objects/activity.ts@@ -1,4 +1,3 @@-import { SeedWorkspaceId } from 'src/database/typeorm-seeds/core/workspaces';import { FieldMetadataType } from 'src/metadata/field-metadata/field-metadata.entity';const activityMetadata = {@@ -137,11 +136,10 @@ const activityMetadata = {description:'Activity author. This is the person who created the activity',icon: 'IconUserCircle',- isNullable: false,+ isNullable: true,},{isCustom: false,- workspaceId: SeedWorkspaceId,isActive: true,type: FieldMetadataType.UUID,name: 'authorId',@@ -166,7 +164,6 @@ const activityMetadata = {},{isCustom: false,- workspaceId: SeedWorkspaceId,isActive: true,type: FieldMetadataType.UUID,name: 'assigneeId',diff --git a/server/src/workspace/workspace-manager/standard-objects/attachment.ts b/server/src/workspace/workspace-manager/standard-objects/attachment.tsindex 94cea327a03..e02116b9f98 100644--- a/server/src/workspace/workspace-manager/standard-objects/attachment.ts+++ b/server/src/workspace/workspace-manager/standard-objects/attachment.ts@@ -65,7 +65,19 @@ const attachmentMetadata = {},description: 'Attachment author',icon: 'IconCircleUser',+ isNullable: true,+ },+ {+ isCustom: false,+ isActive: true,+ type: FieldMetadataType.UUID,+ name: 'authorId',+ label: 'Author id (foreign key)',+ targetColumnMap: {},+ description: 'Activity author id foreign key',+ icon: undefined,isNullable: false,+ isSystem: true,},{isCustom: false,