style: fix linting issues met Prettier
This commit is contained in:
parent
e0f6cc4150
commit
9d01621c86
3 changed files with 5 additions and 5 deletions
|
@ -69,7 +69,7 @@ function createLearningObject(metadata: LearningObjectMetadata, content: Buffer,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!metadata.target_ages || metadata.target_ages.length === 0) {
|
if (!metadata.target_ages || metadata.target_ages.length === 0) {
|
||||||
throw new BadRequestException("errorTargetAgesMandatory");
|
throw new BadRequestException('errorTargetAgesMandatory');
|
||||||
}
|
}
|
||||||
|
|
||||||
const learningObject = learningObjectRepo.create({
|
const learningObject = learningObjectRepo.create({
|
||||||
|
@ -92,7 +92,7 @@ function createLearningObject(metadata: LearningObjectMetadata, content: Buffer,
|
||||||
estimatedTime: metadata.estimated_time ?? 1,
|
estimatedTime: metadata.estimated_time ?? 1,
|
||||||
targetAges: metadata.target_ages ?? [],
|
targetAges: metadata.target_ages ?? [],
|
||||||
difficulty: metadata.difficulty ?? 1,
|
difficulty: metadata.difficulty ?? 1,
|
||||||
uuid: v4()
|
uuid: v4(),
|
||||||
});
|
});
|
||||||
const attachmentEntities = attachments.map((it) =>
|
const attachmentEntities = attachments.map((it) =>
|
||||||
attachmentRepo.create({
|
attachmentRepo.create({
|
||||||
|
|
|
@ -149,8 +149,8 @@ const learningPathService = {
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
if (learningObjectsOnPath.some(it => !it)) {
|
if (learningObjectsOnPath.some((it) => !it)) {
|
||||||
throw new BadRequestException("pathContainsNonExistingLearningObjects")
|
throw new BadRequestException('pathContainsNonExistingLearningObjects');
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
keywords: t("hintKeywordsSeparatedBySpaces")
|
keywords: t("hintKeywordsSeparatedBySpaces"),
|
||||||
};
|
};
|
||||||
|
|
||||||
const { isPending: isPostPending, error: postError, mutate: doPost } = usePostLearningPathMutation();
|
const { isPending: isPostPending, error: postError, mutate: doPost } = usePostLearningPathMutation();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue