Skip to content

Commit

Permalink
Identation fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaellinaresxk committed Nov 19, 2023
1 parent 8a4c7ed commit 8c51e64
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 25 deletions.
44 changes: 22 additions & 22 deletions apps/server/src/modules/learnroom/service/board-copy.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,28 +43,28 @@ export class BoardCopyService {
private readonly copyHelperService: CopyHelperService
) {}

async copyBoard(params: BoardCopyParams): Promise<CopyStatus> {
const { originalBoard, user, destinationCourse } = params;

const boardElements: BoardElement[] = originalBoard.getElements();
const elements: CopyStatus[] = await this.copyBoardElements(boardElements, user, destinationCourse);
const references: BoardElement[] = this.extractReferences(elements);

let boardCopy: Board = new Board({ references, course: destinationCourse });

let status: CopyStatus = {
title: 'board',
type: CopyElementType.BOARD,
status: this.copyHelperService.deriveStatusFromElements(elements),
copyEntity: boardCopy,
originalEntity: params.originalBoard,
elements,
};

status = this.updateCopiedEmbeddedTasksOfLessons(status);
if (status.copyEntity) {
boardCopy = status.copyEntity as Board;
}
async copyBoard(params: BoardCopyParams): Promise<CopyStatus> {
const { originalBoard, user, destinationCourse } = params;

const boardElements: BoardElement[] = originalBoard.getElements();
const elements: CopyStatus[] = await this.copyBoardElements(boardElements, user, destinationCourse);
const references: BoardElement[] = this.extractReferences(elements);

let boardCopy: Board = new Board({ references, course: destinationCourse });

let status: CopyStatus = {
title: 'board',
type: CopyElementType.BOARD,
status: this.copyHelperService.deriveStatusFromElements(elements),
copyEntity: boardCopy,
originalEntity: params.originalBoard,
elements,
};

status = this.updateCopiedEmbeddedTasksOfLessons(status);
if (status.copyEntity) {
boardCopy = status.copyEntity as Board;
}

try {
await this.boardRepo.save(boardCopy);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,4 @@ export class CourseCopyService {
};
return status;
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export class LessonCopyService {
status: CopyStatusEnum.PARTIAL,
};
if (nexboardContent) {
nexboardStatus.status = CopyStatusEnum.FAIL;
nexboardStatus.status = CopyStatusEnum.NOT_DOING;
}
copiedContentStatus.push(nexboardStatus);
}
Expand Down

0 comments on commit 8c51e64

Please sign in to comment.