fix: missing await
This commit is contained in:
		
							parent
							
								
									f5e75cd868
								
							
						
					
					
						commit
						cab39dc877
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -12,7 +12,8 @@ export class AnswerRepository extends DwengoEntityRepository<Answer> { | |||
|             content: answer.content, | ||||
|             timestamp: new Date(), | ||||
|         }); | ||||
|         return this.insert(answerEntity); | ||||
|         await this.insert(answerEntity); | ||||
|         return answerEntity; | ||||
|     } | ||||
|     public async findAllAnswersToQuestion(question: Question): Promise<Answer[]> { | ||||
|         return this.findAll({ | ||||
|  |  | |||
		Reference in a new issue
	
	 Timo De Meyst
						Timo De Meyst