Add [from/to]Description to CreateRelationInput (#2613)
This commit is contained in:
@ -62,9 +62,19 @@ export class CreateRelationInput {
|
|||||||
|
|
||||||
@IsString()
|
@IsString()
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@Field({ nullable: true })
|
@Field({ nullable: true, deprecationReason: 'Use fromDescription instead' })
|
||||||
description?: string;
|
description?: string;
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@IsOptional()
|
||||||
|
@Field({ nullable: true })
|
||||||
|
fromDescription?: string;
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@IsOptional()
|
||||||
|
@Field({ nullable: true })
|
||||||
|
toDescription?: string;
|
||||||
|
|
||||||
@HideField()
|
@HideField()
|
||||||
workspaceId: string;
|
workspaceId: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -122,7 +122,7 @@ export class RelationMetadataService extends TypeOrmQueryService<RelationMetadat
|
|||||||
{
|
{
|
||||||
name: record.fromName,
|
name: record.fromName,
|
||||||
label: record.fromLabel,
|
label: record.fromLabel,
|
||||||
description: record.description,
|
description: record.fromDescription,
|
||||||
icon: record.fromIcon,
|
icon: record.fromIcon,
|
||||||
isCustom: true,
|
isCustom: true,
|
||||||
targetColumnMap: {},
|
targetColumnMap: {},
|
||||||
@ -135,7 +135,7 @@ export class RelationMetadataService extends TypeOrmQueryService<RelationMetadat
|
|||||||
{
|
{
|
||||||
name: record.toName,
|
name: record.toName,
|
||||||
label: record.toLabel,
|
label: record.toLabel,
|
||||||
description: undefined,
|
description: record.toDescription,
|
||||||
icon: record.toIcon,
|
icon: record.toIcon,
|
||||||
isCustom: true,
|
isCustom: true,
|
||||||
targetColumnMap: {},
|
targetColumnMap: {},
|
||||||
|
|||||||
Reference in New Issue
Block a user