Fix activity creation (#2686)
This commit is contained in:
@ -1,4 +1,3 @@
|
|||||||
import { SeedWorkspaceId } from 'src/database/typeorm-seeds/core/workspaces';
|
|
||||||
import { FieldMetadataType } from 'src/metadata/field-metadata/field-metadata.entity';
|
import { FieldMetadataType } from 'src/metadata/field-metadata/field-metadata.entity';
|
||||||
|
|
||||||
const activityMetadata = {
|
const activityMetadata = {
|
||||||
@ -137,11 +136,10 @@ const activityMetadata = {
|
|||||||
description:
|
description:
|
||||||
'Activity author. This is the person who created the activity',
|
'Activity author. This is the person who created the activity',
|
||||||
icon: 'IconUserCircle',
|
icon: 'IconUserCircle',
|
||||||
isNullable: false,
|
isNullable: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
workspaceId: SeedWorkspaceId,
|
|
||||||
isActive: true,
|
isActive: true,
|
||||||
type: FieldMetadataType.UUID,
|
type: FieldMetadataType.UUID,
|
||||||
name: 'authorId',
|
name: 'authorId',
|
||||||
@ -166,7 +164,6 @@ const activityMetadata = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
workspaceId: SeedWorkspaceId,
|
|
||||||
isActive: true,
|
isActive: true,
|
||||||
type: FieldMetadataType.UUID,
|
type: FieldMetadataType.UUID,
|
||||||
name: 'assigneeId',
|
name: 'assigneeId',
|
||||||
|
|||||||
@ -65,7 +65,19 @@ const attachmentMetadata = {
|
|||||||
},
|
},
|
||||||
description: 'Attachment author',
|
description: 'Attachment author',
|
||||||
icon: 'IconCircleUser',
|
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,
|
isNullable: false,
|
||||||
|
isSystem: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user