Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Mar 25, 2024
1 parent 22a0bd0 commit f0105c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions MyApp.ServiceInterface/Data/QuestionFiles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ public async Task LoadQuestionAndAnswersAsync()
var to = new QuestionAndAnswers();
foreach (var entry in FileContents)
{
if (string.IsNullOrEmpty(entry.Value))
continue;

var fileName = entry.Key.LastRightPart('/');
if (fileName == questionFileName)
{
Expand Down
2 changes: 1 addition & 1 deletion MyApp.ServiceInterface/QuestionServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,6 @@ public async Task Any(CreateWorkerAnswer request)
});
}

await questions.SaveAnswerAsync(request.PostId, request.Model, request.Json);
await questions.SaveAnswerAsync(request.PostId, request.Model, json);
}
}

0 comments on commit f0105c9

Please sign in to comment.