Skip to content

Commit

Permalink
WhiteboardContent can be updated in UpdateCalloutFramingInput (#4061)
Browse files Browse the repository at this point in the history
Co-authored-by: Svetoslav Petkov <svetoslav@alkem.io>
  • Loading branch information
me-andre and hero101 authored Jun 6, 2024
1 parent 252c68f commit 527a621
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@ export class CalloutFramingService {
);
}

if (calloutFraming.whiteboard && calloutFramingData.whiteboardContent) {
calloutFraming.whiteboard =
await this.whiteboardService.updateWhiteboardContent(
calloutFraming.whiteboard,
calloutFramingData.whiteboardContent
);
}

return calloutFraming;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Type } from 'class-transformer';
import { IsOptional, ValidateNested } from 'class-validator';
import { UpdateProfileInput } from '@domain/common/profile/dto/profile.dto.update';
import { UpdateWhiteboardInput } from '@domain/common/whiteboard/dto/whiteboard.dto.update';
import { UpdateWhiteboardContentInput } from '@domain/common/whiteboard/dto/whiteboard.dto.update.content';

@InputType()
export class UpdateCalloutFramingInput {
Expand All @@ -18,4 +19,8 @@ export class UpdateCalloutFramingInput {
@Field(() => UpdateWhiteboardInput, { nullable: true })
@IsOptional()
whiteboard?: UpdateWhiteboardInput;

@Field(() => UpdateWhiteboardContentInput, { nullable: true })
@IsOptional()
whiteboardContent?: UpdateWhiteboardContentInput;
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class CalloutTemplateService {
{
relations: {
profile: true,
framing: true,
framing: { whiteboard: true },
contributionPolicy: true,
contributionDefaults: true,
},
Expand Down

0 comments on commit 527a621

Please sign in to comment.