style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-05-16 10:53:19 +00:00
parent e0f6cc4150
commit 9d01621c86
3 changed files with 5 additions and 5 deletions

View file

@ -69,7 +69,7 @@ function createLearningObject(metadata: LearningObjectMetadata, content: Buffer,
};
if (!metadata.target_ages || metadata.target_ages.length === 0) {
throw new BadRequestException("errorTargetAgesMandatory");
throw new BadRequestException('errorTargetAgesMandatory');
}
const learningObject = learningObjectRepo.create({
@ -92,7 +92,7 @@ function createLearningObject(metadata: LearningObjectMetadata, content: Buffer,
estimatedTime: metadata.estimated_time ?? 1,
targetAges: metadata.target_ages ?? [],
difficulty: metadata.difficulty ?? 1,
uuid: v4()
uuid: v4(),
});
const attachmentEntities = attachments.map((it) =>
attachmentRepo.create({

View file

@ -149,8 +149,8 @@ const learningPathService = {
})
)
);
if (learningObjectsOnPath.some(it => !it)) {
throw new BadRequestException("pathContainsNonExistingLearningObjects")
if (learningObjectsOnPath.some((it) => !it)) {
throw new BadRequestException('pathContainsNonExistingLearningObjects');
}
try {

View file

@ -45,7 +45,7 @@
],
},
],
keywords: t("hintKeywordsSeparatedBySpaces")
keywords: t("hintKeywordsSeparatedBySpaces"),
};
const { isPending: isPostPending, error: postError, mutate: doPost } = usePostLearningPathMutation();