Skip to content

Commit

Permalink
fixing merge errors
Browse files Browse the repository at this point in the history
  • Loading branch information
psachmann committed Dec 19, 2024
1 parent 108e71d commit 5e9f836
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export class CourseCommonCartridgeMetadataDto {
public id: string;

public courseName: string;

public creationDate?: string;

public copyRightOwners: Array<string>;

constructor(props: CourseCommonCartridgeMetadataDto) {
this.id = props.id;
this.courseName = props.courseName;
this.creationDate = props.creationDate;
this.copyRightOwners = props.copyRightOwners;
}
}
1 change: 1 addition & 0 deletions apps/server/src/infra/courses-client/dto/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { CourseCommonCartridgeMetadataDto } from './courses-common-cartridge-metadata.dto';
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('CommonCartridgeExportService', () => {
exportTasks: boolean,
exportColumnBoards: boolean
) => {
const courseMetadata: CourseCommonCartridgeMetadataDto = courseMetadataFactory.build();
const courseMetadata = courseMetadataFactory.build();
const lessons = lessonFactory.buildList(2);
const [lesson] = lessons;
lesson.courseId = courseMetadata.id;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Injectable } from '@nestjs/common';
import { CoursesClientAdapter } from '@infra/courses-client';
import { CourseCommonCartridgeMetadataDto } from '@infra/courses-client/dto';
import { BoardClientAdapter, BoardSkeletonDto, ColumnSkeletonDto } from '../common-cartridge-client/board-client';
import { CardClientAdapter } from '../common-cartridge-client/card-client';
import { CourseRoomsClientAdapter } from '../common-cartridge-client/room-client';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sanitizeHtml from 'sanitize-html';
import { CourseCommonCartridgeMetadataDto } from '../common-cartridge-client/course-client';
import { CourseCommonCartridgeMetadataDto } from '@infra/courses-client/dto';
import {
LessonContentDto,
LessonContentDtoComponentValues,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { faker } from '@faker-js/faker';
import { Factory } from 'fishery';
import { CourseCommonCartridgeMetadataDto } from '../common-cartridge-client/course-client';
import { CourseCommonCartridgeMetadataDto } from '@infra/courses-client/dto';
import { LessonContentDto, LessonDto, LessonLinkedTaskDto } from '../common-cartridge-client/lesson-client/dto';
import { BoardSkeletonDto, CardSkeletonDto, ColumnSkeletonDto } from '../common-cartridge-client/board-client';
import { CardListResponseDto } from '../common-cartridge-client/card-client/dto/card-list-response.dto';
Expand Down

0 comments on commit 5e9f836

Please sign in to comment.