Skip to content

Commit

Permalink
Development: Fix the path of exercise- and lecture-type domain object…
Browse files Browse the repository at this point in the history
…s in the client (#9313)
  • Loading branch information
ole-ve authored Sep 19, 2024
1 parent a627887 commit 77bb182
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class CourseDashboardService {
return ExerciseType.QUIZ;
case 'de.tum.cit.aet.artemis.text.domain.TextExercise':
return ExerciseType.TEXT;
case 'de.tum.cit.aet.artemis.file.domain.FileUploadExercise':
case 'de.tum.cit.aet.artemis.fileupload.domain.FileUploadExercise':
return ExerciseType.FILE_UPLOAD;
default:
throw new Error(`Unknown exercise type: ${type}`);
Expand All @@ -121,15 +121,15 @@ export class CourseDashboardService {

private mapToLectureUnitType(type: string): LectureUnitType {
switch (type) {
case 'de.tum.cit.aet.artemis.domain.lecture.AttachmentUnit':
case 'de.tum.cit.aet.artemis.lecture.domain.AttachmentUnit':
return LectureUnitType.ATTACHMENT;
case 'de.tum.cit.aet.artemis.domain.lecture.ExerciseUnit':
case 'de.tum.cit.aet.artemis.lecture.domain.ExerciseUnit':
return LectureUnitType.EXERCISE;
case 'de.tum.cit.aet.artemis.domain.lecture.TextUnit':
case 'de.tum.cit.aet.artemis.lecture.domain.TextUnit':
return LectureUnitType.TEXT;
case 'de.tum.cit.aet.artemis.domain.lecture.VideoUnit':
case 'de.tum.cit.aet.artemis.lecture.domain.VideoUnit':
return LectureUnitType.VIDEO;
case 'de.tum.cit.aet.artemis.domain.lecture.OnlineUnit':
case 'de.tum.cit.aet.artemis.lecture.domain.OnlineUnit':
return LectureUnitType.ONLINE;
default:
throw new Error(`Unknown lecture unit type: ${type}`);
Expand Down

0 comments on commit 77bb182

Please sign in to comment.