Default to a list just in case and tweaked the logging for Koreader.

This commit is contained in:
Joseph Milazzo 2025-06-28 07:52:58 -05:00
parent 9e556cb162
commit dfab848860
4 changed files with 5 additions and 4 deletions

View file

@ -39,7 +39,7 @@ public class KoreaderService : IKoreaderService
/// <param name="userId"></param>
public async Task SaveProgress(KoreaderBookDto koreaderBookDto, int userId)
{
_logger.LogDebug("Saving Koreader progress for {UserId}: {KoreaderProgress}", userId, koreaderBookDto.Progress);
_logger.LogDebug("Saving Koreader progress for User ({UserId}): {KoreaderProgress}", userId, koreaderBookDto.Progress);
var file = await _unitOfWork.MangaFileRepository.GetByKoreaderHash(koreaderBookDto.Document);
if (file == null) throw new KavitaException(await _localizationService.Translate(userId, "file-missing"));