diff --git a/.github/workflows/develop-workflow.yml b/.github/workflows/develop-workflow.yml
index 9b05c606a..56e85409d 100644
--- a/.github/workflows/develop-workflow.yml
+++ b/.github/workflows/develop-workflow.yml
@@ -49,7 +49,7 @@ jobs:
dotnet-version: 7.0.x
- name: Bump versions
- uses: majora2007/dotnet-bump-version@v0.0.2
+ uses: majora2007/dotnet-bump-version@v0.0.3
with:
version_files: Kavita.Common/Kavita.Common.csproj
github_token: ${{ secrets.REPO_GHA_PAT }}
diff --git a/API/Controllers/PanelsController.cs b/API/Controllers/PanelsController.cs
index dc4d1b00a..511e8e6c5 100644
--- a/API/Controllers/PanelsController.cs
+++ b/API/Controllers/PanelsController.cs
@@ -44,12 +44,19 @@ public class PanelsController : BaseApiController
///
/// The number of pages read, 0 if none read
[HttpGet("get-progress")]
- public async Task> GetProgress(int chapterId, [FromQuery] string apiKey)
+ public async Task> GetProgress(int chapterId, [FromQuery] string apiKey)
{
if (string.IsNullOrEmpty(apiKey)) return Unauthorized("ApiKey is required");
var userId = await _unitOfWork.UserRepository.GetUserIdByApiKeyAsync(apiKey);
var progress = await _unitOfWork.AppUserProgressRepository.GetUserProgressDtoAsync(chapterId, userId);
- return Ok(progress?.PageNum ?? 0);
+ if (progress == null) return Ok(new ProgressDto()
+ {
+ PageNum = 0,
+ ChapterId = chapterId,
+ VolumeId = 0,
+ SeriesId = 0
+ });
+ return Ok(progress);
}
}