diff --git a/backend/src/services/learning-paths/learning-path-service.ts b/backend/src/services/learning-paths/learning-path-service.ts index 41dec92c..8bae4193 100644 --- a/backend/src/services/learning-paths/learning-path-service.ts +++ b/backend/src/services/learning-paths/learning-path-service.ts @@ -141,16 +141,16 @@ const learningPathService = { // Verify that all specified learning objects actually exist. const learningObjectsOnPath = await Promise.all( - path.nodes.map(async node => + path.nodes.map(async (node) => learningObjectService.getLearningObjectById({ hruid: node.learningObjectHruid, language: node.language, - version: node.version + version: node.version, }) ) ); - if (learningObjectsOnPath.some(it => !it)) { - throw new BadRequestException("At least one of the specified learning objects does not exist.") + if (learningObjectsOnPath.some((it) => !it)) { + throw new BadRequestException('At least one of the specified learning objects does not exist.'); } try {