diff --git a/.app_version b/.app_version index c5523bd0..7cca7711 100644 --- a/.app_version +++ b/.app_version @@ -1 +1 @@ -0.17.0 +0.17.1 diff --git a/CHANGELOG.md b/CHANGELOG.md index d872effe..6b0b89f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +# 0.17.1 - 2024-11-27 + +### Fixed + +- Retrieving photos from Immich now correctly handles cases when Immich returns no items. It also logs the response from Immich for debugging purposes. + # 0.17.0 - 2024-11-26 ## The Immich Photos release diff --git a/app/services/immich/request_photos.rb b/app/services/immich/request_photos.rb index f553207c..c9139e2a 100644 --- a/app/services/immich/request_photos.rb +++ b/app/services/immich/request_photos.rb @@ -36,7 +36,13 @@ class Immich::RequestPhotos items = response.dig('assets', 'items') - break if items.empty? + if items.blank? + Rails.logger.debug('==== IMMICH RESPONSE WITH NO ITEMS ====') + Rails.logger.debug(response) + Rails.logger.debug('==== IMMICH RESPONSE WITH NO ITEMS ====') + + break + end data << items