mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
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
@ -174,6 +174,7 @@ public class ReaderService : IReaderService
|
||||
_unitOfWork.AppUserProgressRepository.Update(userProgress);
|
||||
}
|
||||
|
||||
if (!_unitOfWork.HasChanges()) return true;
|
||||
if (await _unitOfWork.CommitAsync())
|
||||
{
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user