From c7886f0e6fc9aeb7f35e7c3cc0feaf65d82bbe74 Mon Sep 17 00:00:00 2001 From: Michael Linares Date: Tue, 14 Nov 2023 14:22:28 +0100 Subject: [PATCH] test --- .../src/modules/learnroom/service/course-copy.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/server/src/modules/learnroom/service/course-copy.service.ts b/apps/server/src/modules/learnroom/service/course-copy.service.ts index eb47daa34ab..83aca2f3850 100644 --- a/apps/server/src/modules/learnroom/service/course-copy.service.ts +++ b/apps/server/src/modules/learnroom/service/course-copy.service.ts @@ -48,11 +48,12 @@ export class CourseCopyService { const boardStatus = await this.boardCopyService.copyBoard({ originalBoard, destinationCourse: courseCopy, user }); const filteredBoardStatus = this.filterOutNeXboardFromCopyStatus(boardStatus); const finishedCourseCopy = await this.finishCourseCopying(courseCopy); - const courseStatus = this.deriveCourseStatus(originalCourse, finishedCourseCopy, boardStatus); + const courseStatus = this.deriveCourseStatus(originalCourse, finishedCourseCopy, filteredBoardStatus); return courseStatus; } + // Exclude LESSON_CONTENT_NEXBOARD from boardStatus private filterOutNeXboardFromCopyStatus(boardStatus: CopyStatus): CopyStatus { if (boardStatus.elements) { boardStatus.elements = boardStatus.elements.filter(elementStatus =>