From 1f059354189b8093b3381eff7c0d3a3b6f353e09 Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Sat, 17 May 2025 20:30:09 +0200 Subject: [PATCH] chore(backend): Optimise imports --- backend/src/services/learning-paths/learning-path-provider.ts | 2 -- backend/src/services/learning-paths/learning-path-service.ts | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/src/services/learning-paths/learning-path-provider.ts b/backend/src/services/learning-paths/learning-path-provider.ts index ee783b35..0cf507ca 100644 --- a/backend/src/services/learning-paths/learning-path-provider.ts +++ b/backend/src/services/learning-paths/learning-path-provider.ts @@ -1,8 +1,6 @@ import { LearningPath, LearningPathResponse } from '@dwengo-1/common/interfaces/learning-content'; import { Language } from '@dwengo-1/common/util/language'; -import { MatchMode } from '@dwengo-1/common/util/match-mode'; import { Group } from '../../entities/assignments/group.entity'; -import { Teacher } from '../../entities/users/teacher.entity'; /** * Generic interface for a service which provides access to learning paths from a data source. diff --git a/backend/src/services/learning-paths/learning-path-service.ts b/backend/src/services/learning-paths/learning-path-service.ts index a2320fa6..56b3be7a 100644 --- a/backend/src/services/learning-paths/learning-path-service.ts +++ b/backend/src/services/learning-paths/learning-path-service.ts @@ -5,7 +5,7 @@ import { LearningObjectNode, LearningPath, LearningPathIdentifier, LearningPathR import { Language } from '@dwengo-1/common/util/language'; import { Group } from '../../entities/assignments/group.entity.js'; import { LearningPath as LearningPathEntity } from '../../entities/content/learning-path.entity.js'; -import { getLearningPathRepository, getTeacherRepository } from '../../data/repositories.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'; @@ -15,7 +15,6 @@ import { Collection } from '@mikro-orm/core'; import { NotFoundException } from '../../exceptions/not-found-exception.js'; import { BadRequestException } from '../../exceptions/bad-request-exception.js'; import learningObjectService from '../learning-objects/learning-object-service.js'; -import { Teacher } from '../../entities/users/teacher.entity'; const userContentPrefix = getEnvVar(envVars.UserContentPrefix); const allProviders = [dwengoApiLearningPathProvider, databaseLearningPathProvider];