style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-05-15 23:35:34 +00:00
parent bd7c6cf2c0
commit a5d178ccb4

View file

@ -141,16 +141,16 @@ const learningPathService = {
// Verify that all specified learning objects actually exist. // Verify that all specified learning objects actually exist.
const learningObjectsOnPath = await Promise.all( const learningObjectsOnPath = await Promise.all(
path.nodes.map(async node => path.nodes.map(async (node) =>
learningObjectService.getLearningObjectById({ learningObjectService.getLearningObjectById({
hruid: node.learningObjectHruid, hruid: node.learningObjectHruid,
language: node.language, language: node.language,
version: node.version version: node.version,
}) })
) )
); );
if (learningObjectsOnPath.some(it => !it)) { if (learningObjectsOnPath.some((it) => !it)) {
throw new BadRequestException("At least one of the specified learning objects does not exist.") throw new BadRequestException('At least one of the specified learning objects does not exist.');
} }
try { try {