From 4d926edb736ce469cd91994a7c707ff75f64458d Mon Sep 17 00:00:00 2001 From: Nevo David Date: Wed, 11 Dec 2024 13:56:02 +0700 Subject: [PATCH] feat: urgent fix for instagram --- .../launches/providers/instagram/instagram.collaborators.tsx | 4 +++- .../src/dtos/posts/providers-settings/instagram.dto.ts | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/frontend/src/components/launches/providers/instagram/instagram.collaborators.tsx b/apps/frontend/src/components/launches/providers/instagram/instagram.collaborators.tsx index 6312836c6..befe797f0 100644 --- a/apps/frontend/src/components/launches/providers/instagram/instagram.collaborators.tsx +++ b/apps/frontend/src/components/launches/providers/instagram/instagram.collaborators.tsx @@ -37,7 +37,9 @@ const InstagramCollaborators: FC<{ values?: any }> = (props) => { {postCurrentType !== 'story' && ( )} diff --git a/libraries/nestjs-libraries/src/dtos/posts/providers-settings/instagram.dto.ts b/libraries/nestjs-libraries/src/dtos/posts/providers-settings/instagram.dto.ts index 49e5cc4fa..956d677b5 100644 --- a/libraries/nestjs-libraries/src/dtos/posts/providers-settings/instagram.dto.ts +++ b/libraries/nestjs-libraries/src/dtos/posts/providers-settings/instagram.dto.ts @@ -1,5 +1,5 @@ import { Type } from 'class-transformer'; -import { IsArray, IsDefined, IsIn, IsString, ValidateNested } from 'class-validator'; +import { IsArray, IsDefined, IsIn, IsString, ValidateNested, IsOptional } from 'class-validator'; export class Collaborators { @IsDefined() @@ -14,5 +14,6 @@ export class InstagramDto { @Type(() => Collaborators) @ValidateNested({ each: true }) @IsArray() + @IsOptional() collaborators: Collaborators[]; }