refactor(backend): File has too many classes

This commit is contained in:
Tibo De Peuter 2025-03-23 11:31:48 +01:00
parent 25f9eb2af2
commit 5b31cec5fe
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
15 changed files with 87 additions and 67 deletions

View file

@ -4,7 +4,7 @@ import { FilteredLearningObject, LearningObjectIdentifier, LearningPathIdentifie
import learningObjectService from '../services/learning-objects/learning-object-service.js';
import { envVars, getEnvVar } from '../util/envVars.js';
import { Language } from '../entities/content/language.js';
import { BadRequestException } from '../exceptions.js';
import { BadRequestException } from '../exceptions/badRequestException.js';
import attachmentService from '../services/learning-objects/attachment-service.js';
import { NotFoundError } from '@mikro-orm/core';

View file

@ -2,13 +2,14 @@ import { Request, Response } from 'express';
import { themes } from '../data/themes.js';
import { FALLBACK_LANG } from '../config.js';
import learningPathService from '../services/learning-paths/learning-path-service.js';
import { BadRequestException, NotFoundException } from '../exceptions.js';
import { BadRequestException } from '../exceptions/badRequestException.js';
import { Language } from '../entities/content/language.js';
import {
PersonalizationTarget,
personalizedForGroup,
personalizedForStudent,
} from '../services/learning-paths/learning-path-personalization-util.js';
import { NotFoundException } from '../exceptions/notFoundException.js';
/**
* Fetch learning paths based on query parameters.