田爽 1 rok pred
rodič
commit
d54f88b30b

+ 2 - 0
src/Hotline.Api/Controllers/KnowledgeController.cs

@@ -848,6 +848,7 @@ namespace Hotline.Api.Controllers
 		public async Task<KnowledgeCorrection> CorrectionEntity(string id)
 		{
 			return await _knowledgeCorrectionRepository.Queryable()
+				.Includes(x=>x.Knowledge)
 				.FirstAsync(x => x.Id == id);
 		}
 		#endregion
@@ -941,6 +942,7 @@ namespace Hotline.Api.Controllers
 		public async Task<KnowledgeQuestions> QuestionsEntity(string id)
 		{
 			return await _knowledgeQuestionsRepository.Queryable()
+				.Includes(x=>x.Knowledge)
 				.FirstAsync(x => x.Id == id);
 		}