Skip to content

Commit

Permalink
EW-793 Adjust cc-import-service after merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoneRadtke-Cap committed Jun 7, 2024
1 parent c66d724 commit 0a5a5e4
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export class CommonCartridgeImportService {
private async createColumnBoard(
parser: CommonCartridgeFileParser,
course: Course,
boardProps: CommonCartridgeOrganizationProps,
organizations: CommonCartridgeOrganizationProps[]
boardProps: CommonCartridgeImportOrganizationProps,
organizations: CommonCartridgeImportOrganizationProps[]
): Promise<void> {
const columnBoard = await this.columnBoardService.create(
{
Expand All @@ -66,8 +66,8 @@ export class CommonCartridgeImportService {
private async createColumns(
parser: CommonCartridgeFileParser,
columnBoard: ColumnBoard,
boardProps: CommonCartridgeOrganizationProps,
organizations: CommonCartridgeOrganizationProps[]
boardProps: CommonCartridgeImportOrganizationProps,
organizations: CommonCartridgeImportOrganizationProps[]
): Promise<void> {
const columnsWithResource = organizations.filter(
(organization) =>
Expand All @@ -91,7 +91,7 @@ export class CommonCartridgeImportService {
private async createColumnWithResource(
parser: CommonCartridgeFileParser,
columnBoard: ColumnBoard,
columnProps: CommonCartridgeOrganizationProps
columnProps: CommonCartridgeImportOrganizationProps
): Promise<void> {
const column = await this.columnService.create(columnBoard, this.mapper.mapOrganizationToColumn(columnProps));
await this.createCardWithElement(parser, column, columnProps, false);
Expand Down Expand Up @@ -124,7 +124,7 @@ export class CommonCartridgeImportService {
private async createCardWithElement(
parser: CommonCartridgeFileParser,
column: Column,
cardProps: CommonCartridgeOrganizationProps,
cardProps: CommonCartridgeImportOrganizationProps,
withTitle = true
): Promise<void> {
const card = await this.cardService.create(
Expand All @@ -146,8 +146,8 @@ export class CommonCartridgeImportService {
private async createCard(
parser: CommonCartridgeFileParser,
column: Column,
cardProps: CommonCartridgeOrganizationProps,
organizations: CommonCartridgeOrganizationProps[]
cardProps: CommonCartridgeImportOrganizationProps,
organizations: CommonCartridgeImportOrganizationProps[]
) {
const card = await this.cardService.create(column, undefined, this.mapper.mapOrganizationToCard(cardProps, true));

Expand All @@ -163,7 +163,7 @@ export class CommonCartridgeImportService {
private async createCardElement(
parser: CommonCartridgeFileParser,
card: Card,
cardElementProps: CommonCartridgeOrganizationProps
cardElementProps: CommonCartridgeImportOrganizationProps
) {
if (cardElementProps.isResource) {
const resource = parser.getResource(cardElementProps);
Expand Down

0 comments on commit 0a5a5e4

Please sign in to comment.