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:
Joseph Milazzo 2022-01-31 12:12:39 -08:00 committed by GitHub
parent fb940816f3
commit 4e7d1433d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,6 +174,7 @@ public class ReaderService : IReaderService
_unitOfWork.AppUserProgressRepository.Update(userProgress);
}
if (!_unitOfWork.HasChanges()) return true;
if (await _unitOfWork.CommitAsync())
{
return true;