diff --git a/apps/api-gateway/src/webhook/dtos/get-webhoook-dto.ts b/apps/api-gateway/src/webhook/dtos/get-webhoook-dto.ts index 846225df0..54e98c6c1 100644 --- a/apps/api-gateway/src/webhook/dtos/get-webhoook-dto.ts +++ b/apps/api-gateway/src/webhook/dtos/get-webhoook-dto.ts @@ -6,11 +6,11 @@ import { trim } from '@credebl/common/cast.helper'; @ApiExtraModels() export class GetWebhookDto { - @ApiPropertyOptional({example: '2a041d6e-d24c-4ed9-b011-1cfc371a8b8e'}) - @IsOptional() + @ApiProperty({example: '2a041d6e-d24c-4ed9-b011-1cfc371a8b8e'}) @Transform(({ value }) => trim(value)) + @IsNotEmpty({ message: 'Please provide the valid orgID' }) @IsString({ message: 'Organization id must be in string format.' }) - orgId?: string; + orgId: string; @ApiPropertyOptional({example: '3a041d6e-d24c-4ed9-b011-1cfc371a8b8e'}) @IsOptional() diff --git a/platform b/platform new file mode 160000 index 000000000..ea4d5f56a --- /dev/null +++ b/platform @@ -0,0 +1 @@ +Subproject commit ea4d5f56abc1e7aff64ab7e9d643d2fa19beac6e