diff --git a/apps/server/src/modules/board/controller/mapper/collaborative-text-editor-element-response.mapper.ts b/apps/server/src/modules/board/controller/mapper/collaborative-text-editor-element-response.mapper.ts index d6dca93b18..9b70877f52 100644 --- a/apps/server/src/modules/board/controller/mapper/collaborative-text-editor-element-response.mapper.ts +++ b/apps/server/src/modules/board/controller/mapper/collaborative-text-editor-element-response.mapper.ts @@ -25,7 +25,7 @@ export class CollaborativeTextEditorElementResponseMapper implements BaseRespons return result; } - canMap(element: CollaborativeTextEditorElement): boolean { + canMap(element: unknown): boolean { return element instanceof CollaborativeTextEditorElement; } } diff --git a/apps/server/src/modules/board/controller/mapper/drawing-element-response.mapper.ts b/apps/server/src/modules/board/controller/mapper/drawing-element-response.mapper.ts index 089740fe73..1829f4d5cd 100644 --- a/apps/server/src/modules/board/controller/mapper/drawing-element-response.mapper.ts +++ b/apps/server/src/modules/board/controller/mapper/drawing-element-response.mapper.ts @@ -25,7 +25,7 @@ export class DrawingElementResponseMapper implements BaseResponseMapper { return result; } - canMap(element: DrawingElement): boolean { + canMap(element: unknown): boolean { return element instanceof DrawingElement; } } diff --git a/apps/server/src/modules/board/controller/mapper/external-tool-element-response.mapper.ts b/apps/server/src/modules/board/controller/mapper/external-tool-element-response.mapper.ts index 226eb65f90..36dd6706ab 100644 --- a/apps/server/src/modules/board/controller/mapper/external-tool-element-response.mapper.ts +++ b/apps/server/src/modules/board/controller/mapper/external-tool-element-response.mapper.ts @@ -24,7 +24,7 @@ export class ExternalToolElementResponseMapper implements BaseResponseMapper { return result; } - canMap(element: ExternalToolElement): boolean { + canMap(element: unknown): boolean { return element instanceof ExternalToolElement; } } diff --git a/apps/server/src/modules/board/controller/mapper/file-element-response.mapper.ts b/apps/server/src/modules/board/controller/mapper/file-element-response.mapper.ts index 6bf2eb5d8d..778a48cbbe 100644 --- a/apps/server/src/modules/board/controller/mapper/file-element-response.mapper.ts +++ b/apps/server/src/modules/board/controller/mapper/file-element-response.mapper.ts @@ -24,7 +24,7 @@ export class FileElementResponseMapper implements BaseResponseMapper { return result; } - canMap(element: FileElement): boolean { + canMap(element: unknown): boolean { return element instanceof FileElement; } } diff --git a/apps/server/src/modules/board/controller/mapper/link-element-response.mapper.ts b/apps/server/src/modules/board/controller/mapper/link-element-response.mapper.ts index 3c3cb0cce0..cde8ef1372 100644 --- a/apps/server/src/modules/board/controller/mapper/link-element-response.mapper.ts +++ b/apps/server/src/modules/board/controller/mapper/link-element-response.mapper.ts @@ -30,7 +30,7 @@ export class LinkElementResponseMapper implements BaseResponseMapper { return result; } - canMap(element: LinkElement): boolean { + canMap(element: unknown): boolean { return element instanceof LinkElement; } } diff --git a/apps/server/src/modules/board/controller/mapper/rich-text-element-response.mapper.ts b/apps/server/src/modules/board/controller/mapper/rich-text-element-response.mapper.ts index c845bc6334..bb9ab6877c 100644 --- a/apps/server/src/modules/board/controller/mapper/rich-text-element-response.mapper.ts +++ b/apps/server/src/modules/board/controller/mapper/rich-text-element-response.mapper.ts @@ -25,7 +25,7 @@ export class RichTextElementResponseMapper implements BaseResponseMapper { return result; } - canMap(element: RichTextElement): boolean { + canMap(element: unknown): boolean { return element instanceof RichTextElement; } } diff --git a/apps/server/src/modules/board/controller/mapper/submission-container-element-response.mapper.ts b/apps/server/src/modules/board/controller/mapper/submission-container-element-response.mapper.ts index b65a1b5654..6ef2a91e60 100644 --- a/apps/server/src/modules/board/controller/mapper/submission-container-element-response.mapper.ts +++ b/apps/server/src/modules/board/controller/mapper/submission-container-element-response.mapper.ts @@ -30,7 +30,7 @@ export class SubmissionContainerElementResponseMapper implements BaseResponseMap return result; } - canMap(element: SubmissionContainerElement): boolean { + canMap(element: unknown): boolean { return element instanceof SubmissionContainerElement; } } diff --git a/apps/server/src/modules/board/controller/mapper/video-conference-element-response.mapper.ts b/apps/server/src/modules/board/controller/mapper/video-conference-element-response.mapper.ts index 5184fab13b..1f02aefb4d 100644 --- a/apps/server/src/modules/board/controller/mapper/video-conference-element-response.mapper.ts +++ b/apps/server/src/modules/board/controller/mapper/video-conference-element-response.mapper.ts @@ -24,7 +24,7 @@ export class VideoConferenceElementResponseMapper implements BaseResponseMapper return result; } - canMap(element: VideoConferenceElement): boolean { + canMap(element: unknown): boolean { return element instanceof VideoConferenceElement; } } diff --git a/apps/server/src/modules/board/domain/video-conference-element.do.ts b/apps/server/src/modules/board/domain/video-conference-element.do.ts index 016057662f..de8a5b714b 100644 --- a/apps/server/src/modules/board/domain/video-conference-element.do.ts +++ b/apps/server/src/modules/board/domain/video-conference-element.do.ts @@ -3,7 +3,7 @@ import type { VideoConferenceElementProps } from './types'; export class VideoConferenceElement extends BoardNode { get title(): string { - return this.props.title ?? ''; + return this.props.title; } set title(value: string) {