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, |             content: answer.content, | ||||||
|             timestamp: new Date(), |             timestamp: new Date(), | ||||||
|         }); |         }); | ||||||
|         return this.insert(answerEntity); |         await this.insert(answerEntity); | ||||||
|  |         return answerEntity; | ||||||
|     } |     } | ||||||
|     public async findAllAnswersToQuestion(question: Question): Promise<Answer[]> { |     public async findAllAnswersToQuestion(question: Question): Promise<Answer[]> { | ||||||
|         return this.findAll({ |         return this.findAll({ | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Timo De Meyst
						Timo De Meyst