diff --git a/backend/src/controllers/learning-paths.ts b/backend/src/controllers/learning-paths.ts index 65f3b457..1bd3f2b1 100644 --- a/backend/src/controllers/learning-paths.ts +++ b/backend/src/controllers/learning-paths.ts @@ -5,8 +5,8 @@ import learningPathService from '../services/learning-paths/learning-path-servic import { Language } from '@dwengo-1/common/util/language'; import { BadRequestException } from '../exceptions/bad-request-exception.js'; import { NotFoundException } from '../exceptions/not-found-exception.js'; -import { Group } from '../entities/assignments/group.entity'; -import { getAssignmentRepository, getGroupRepository } from '../data/repositories'; +import { Group } from '../entities/assignments/group.entity.js'; +import { getAssignmentRepository, getGroupRepository } from '../data/repositories.js'; /** * Fetch learning paths based on query parameters. diff --git a/backend/src/data/content/learning-path-repository.ts b/backend/src/data/content/learning-path-repository.ts index 60f37948..67f08a03 100644 --- a/backend/src/data/content/learning-path-repository.ts +++ b/backend/src/data/content/learning-path-repository.ts @@ -1,10 +1,10 @@ import { DwengoEntityRepository } from '../dwengo-entity-repository.js'; import { LearningPath } from '../../entities/content/learning-path.entity.js'; import { Language } from '@dwengo-1/common/util/language'; -import { LearningPathNode } from '../../entities/content/learning-path-node.entity'; +import { LearningPathNode } from '../../entities/content/learning-path-node.entity.js'; import { RequiredEntityData } from '@mikro-orm/core'; -import { LearningPathTransition } from '../../entities/content/learning-path-transition.entity'; -import { EntityAlreadyExistsException } from '../../exceptions/entity-already-exists-exception'; +import { LearningPathTransition } from '../../entities/content/learning-path-transition.entity.js'; +import { EntityAlreadyExistsException } from '../../exceptions/entity-already-exists-exception.js'; export class LearningPathRepository extends DwengoEntityRepository { public async findByHruidAndLanguage(hruid: string, language: Language): Promise { diff --git a/backend/src/services/learning-paths/learning-path-service.ts b/backend/src/services/learning-paths/learning-path-service.ts index 730d7ba8..b20d8f97 100644 --- a/backend/src/services/learning-paths/learning-path-service.ts +++ b/backend/src/services/learning-paths/learning-path-service.ts @@ -3,14 +3,14 @@ import databaseLearningPathProvider from './database-learning-path-provider.js'; import { envVars, getEnvVar } from '../../util/envVars.js'; import { LearningObjectNode, LearningPath, LearningPathResponse } from '@dwengo-1/common/interfaces/learning-content'; import { Language } from '@dwengo-1/common/util/language'; -import { Group } from '../../entities/assignments/group.entity'; -import { LearningPath as LearningPathEntity } from '../../entities/content/learning-path.entity'; -import { getLearningPathRepository } from '../../data/repositories'; -import { LearningPathNode } from '../../entities/content/learning-path-node.entity'; -import { LearningPathTransition } from '../../entities/content/learning-path-transition.entity'; -import { base64ToArrayBuffer } from '../../util/base64-buffer-conversion'; +import { Group } from '../../entities/assignments/group.entity.js'; +import { LearningPath as LearningPathEntity } from '../../entities/content/learning-path.entity.js'; +import { getLearningPathRepository } from '../../data/repositories.js'; +import { LearningPathNode } from '../../entities/content/learning-path-node.entity.js'; +import { LearningPathTransition } from '../../entities/content/learning-path-transition.entity.js'; +import { base64ToArrayBuffer } from '../../util/base64-buffer-conversion.js'; import { TeacherDTO } from '@dwengo-1/common/interfaces/teacher'; -import { mapToTeacher } from '../../interfaces/teacher'; +import { mapToTeacher } from '../../interfaces/teacher.js'; import { Collection } from '@mikro-orm/core'; const userContentPrefix = getEnvVar(envVars.UserContentPrefix);