From 5af96f709e71c4f0ea4a20fa5b16efb9a0d90d18 Mon Sep 17 00:00:00 2001 From: Michael Linares Date: Thu, 23 Nov 2023 13:28:28 +0100 Subject: [PATCH] Added copyNexboardflag on lesson-copy.service. --- .../server/src/modules/lesson/service/lesson-copy.service.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/server/src/modules/lesson/service/lesson-copy.service.ts b/apps/server/src/modules/lesson/service/lesson-copy.service.ts index 3d2e5713a74..52279409d4c 100644 --- a/apps/server/src/modules/lesson/service/lesson-copy.service.ts +++ b/apps/server/src/modules/lesson/service/lesson-copy.service.ts @@ -224,8 +224,9 @@ export class LessonCopyService { copiedContent.push(linkContent); copiedContentStatus.push(embeddedTaskStatus); } + if (element.component === ComponentType.NEXBOARD && nexboardEnabled && copyNexboardEnabled) { - // eslint-disable-next-line no-await-in-loop + // // eslint-disable-next-line no-await-in-loop const nexboardContent = await this.copyNexboard(element, params); const nexboardStatus = { title: element.title, @@ -234,8 +235,6 @@ export class LessonCopyService { }; if (nexboardContent) { copiedContent.push(nexboardContent); - } else { - nexboardStatus.status = CopyStatusEnum.FAIL; } copiedContentStatus.push(nexboardStatus); }