style: fix linting issues met Prettier
This commit is contained in:
parent
bd7c6cf2c0
commit
a5d178ccb4
1 changed files with 4 additions and 4 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue