style: fix linting issues met Prettier
This commit is contained in:
		
							parent
							
								
									b45fc47b06
								
							
						
					
					
						commit
						18e17e0133
					
				
					 9 changed files with 184 additions and 160 deletions
				
			
		|  | @ -15,7 +15,7 @@ export class AnswerRepository extends DwengoEntityRepository<Answer> { | |||
|         await this.insert(answerEntity); | ||||
|         answerEntity.toQuestion = answer.toQuestion; | ||||
|         answerEntity.author = answer.author; | ||||
|         answerEntity.content = answer.content;      | ||||
|         answerEntity.content = answer.content; | ||||
|         return answerEntity; | ||||
|     } | ||||
|     public async findAllAnswersToQuestion(question: Question): Promise<Answer[]> { | ||||
|  |  | |||
|  | @ -89,9 +89,8 @@ export async function createQuestion(loId: LearningObjectIdentifier, questionDat | |||
| 
 | ||||
|     let assignment; | ||||
| 
 | ||||
|     if ((typeof questionData.inGroup.assignment === "number") && (typeof questionData.inGroup.class === "string")) { | ||||
|         assignment = await fetchAssignment(questionData.inGroup.class, | ||||
|             questionData.inGroup.assignment); | ||||
|     if (typeof questionData.inGroup.assignment === 'number' && typeof questionData.inGroup.class === 'string') { | ||||
|         assignment = await fetchAssignment(questionData.inGroup.class, questionData.inGroup.assignment); | ||||
|     } else { | ||||
|         // TODO check if necessary and no conflicts to delete this if
 | ||||
|         const clazz = await getClassRepository().findById((questionData.inGroup.assignment as AssignmentDTO).within); | ||||
|  | @ -99,14 +98,14 @@ export async function createQuestion(loId: LearningObjectIdentifier, questionDat | |||
|     } | ||||
| 
 | ||||
|     const inGroup = await getGroupRepository().findByAssignmentAndGroupNumber(assignment, questionData.inGroup.groupNumber); | ||||
|      | ||||
| 
 | ||||
|     const question = await questionRepository.createQuestion({ | ||||
|         loId, | ||||
|         author, | ||||
|         inGroup: inGroup!, | ||||
|         content, | ||||
|     }); | ||||
|      | ||||
| 
 | ||||
|     return mapToQuestionDTO(question); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Reference in a new issue
	
	 Lint Action
						Lint Action