Skip to content

Commit

Permalink
Added copyNexboardflag on lesson-copy.service.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaellinaresxk committed Nov 23, 2023
1 parent 26b0ff2 commit 5af96f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/server/src/modules/lesson/service/lesson-copy.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Check failure on line 230 in apps/server/src/modules/lesson/service/lesson-copy.service.ts

View workflow job for this annotation

GitHub Actions / nest_lint

Unexpected `await` inside a loop
const nexboardStatus = {
title: element.title,
Expand All @@ -234,8 +235,6 @@ export class LessonCopyService {
};
if (nexboardContent) {
copiedContent.push(nexboardContent);
} else {
nexboardStatus.status = CopyStatusEnum.FAIL;
}
copiedContentStatus.push(nexboardStatus);
}
Expand Down

0 comments on commit 5af96f7

Please sign in to comment.