Fix activity creation (#2686)

This commit is contained in:
Weiko 2023-11-24 10:01:29 +01:00 committed by GitHub
parent 851ce73609
commit c395955f12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 4 deletions

View File

@ -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',

View File

@ -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,