Don't throw an exception when we are trying to save progress and there is nothing new to save. (#1016)
This commit is contained in:
parent
fb940816f3
commit
4e7d1433d1
1 changed files with 1 additions and 0 deletions
|
@ -174,6 +174,7 @@ public class ReaderService : IReaderService
|
|||
_unitOfWork.AppUserProgressRepository.Update(userProgress);
|
||||
}
|
||||
|
||||
if (!_unitOfWork.HasChanges()) return true;
|
||||
if (await _unitOfWork.CommitAsync())
|
||||
{
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue