diff --git a/backend/src/controllers/learning-objects.ts b/backend/src/controllers/learning-objects.ts index 8f5b18b9..eb5c587a 100644 --- a/backend/src/controllers/learning-objects.ts +++ b/backend/src/controllers/learning-objects.ts @@ -6,7 +6,7 @@ import { EnvVars, getEnvVar } from '../util/envvars.js'; import { Language } from '../entities/content/language.js'; import attachmentService from '../services/learning-objects/attachment-service.js'; import { NotFoundError } from '@mikro-orm/core'; -import {BadRequestException} from "../exceptions/badRequestException"; +import {BadRequestException} from "../exceptions/bad-request-exception.js"; function getLearningObjectIdentifierFromRequest(req: Request): LearningObjectIdentifier { if (!req.params.hruid) { diff --git a/backend/src/controllers/learning-paths.ts b/backend/src/controllers/learning-paths.ts index bf6f94d7..67b11d13 100644 --- a/backend/src/controllers/learning-paths.ts +++ b/backend/src/controllers/learning-paths.ts @@ -8,8 +8,8 @@ import { personalizedForGroup, personalizedForStudent, } from '../services/learning-paths/learning-path-personalization-util.js'; -import {BadRequestException} from "../exceptions/badRequestException"; -import {NotFoundException} from "../exceptions/not-found-exception"; +import {BadRequestException} from "../exceptions/bad-request-exception.js"; +import {NotFoundException} from "../exceptions/not-found-exception.js"; /** * Fetch learning paths based on query parameters. diff --git a/backend/src/exceptions/bad-request-exception.ts b/backend/src/exceptions/bad-request-exception.ts index eb5d4db0..fa2ae17a 100644 --- a/backend/src/exceptions/bad-request-exception.ts +++ b/backend/src/exceptions/bad-request-exception.ts @@ -3,7 +3,7 @@ import {ExceptionWithHttpState} from "./exception-with-http-state.js"; /** * Exception for HTTP 400 Bad Request */ -export abstract class BadRequestException extends ExceptionWithHttpState { +export class BadRequestException extends ExceptionWithHttpState { constructor(error: string) { super(400, error); }