From 4e7d1433d1a3ea0afae5afada02429bb0a1751f9 Mon Sep 17 00:00:00 2001 From: Joseph Milazzo Date: Mon, 31 Jan 2022 12:12:39 -0800 Subject: [PATCH] Don't throw an exception when we are trying to save progress and there is nothing new to save. (#1016) --- API/Services/ReaderService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/API/Services/ReaderService.cs b/API/Services/ReaderService.cs index c59cd8549..847df6004 100644 --- a/API/Services/ReaderService.cs +++ b/API/Services/ReaderService.cs @@ -174,6 +174,7 @@ public class ReaderService : IReaderService _unitOfWork.AppUserProgressRepository.Update(userProgress); } + if (!_unitOfWork.HasChanges()) return true; if (await _unitOfWork.CommitAsync()) { return true;