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) { | ||||
|         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({ | ||||
|  |  | |||
|  | @ -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 { | ||||
|  |  | |||
|  | @ -45,7 +45,7 @@ | |||
|                 ], | ||||
|             }, | ||||
|         ], | ||||
|         keywords: t("hintKeywordsSeparatedBySpaces") | ||||
|         keywords: t("hintKeywordsSeparatedBySpaces"), | ||||
|     }; | ||||
| 
 | ||||
|     const { isPending: isPostPending, error: postError, mutate: doPost } = usePostLearningPathMutation(); | ||||
|  |  | |||
		Reference in a new issue
	
	 Lint Action
						Lint Action