We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6957355 commit 4d9d51eCopy full SHA for 4d9d51e
1 file changed
HwProj.SolutionsService/HwProj.SolutionsService.API/Services/SolutionsService.cs
@@ -120,12 +120,13 @@ await _solutionsRepository
120
121
if (lastSolution != null && lastSolution.State == SolutionState.Posted)
122
{
123
+ var isModified = lastSolution.GithubUrl != solution.GithubUrl || lastSolution.Comment != solution.Comment;
124
await _solutionsRepository.UpdateAsync(lastSolution.Id, x => new Solution
125
126
GithubUrl = solution.GithubUrl,
127
Comment = solution.Comment,
128
GroupId = solution.GroupId,
- IsModified = true,
129
+ IsModified = isModified,
130
State = SolutionState.Posted,
131
});
132
solutionId = lastSolution.Id;
0 commit comments