mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
Add logging for Immich response with no items
This commit is contained in:
parent
45cbaf4b7e
commit
336654270d
3 changed files with 14 additions and 2 deletions
|
|
@ -1 +1 @@
|
||||||
0.17.0
|
0.17.1
|
||||||
|
|
|
||||||
|
|
@ -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/)
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
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
|
# 0.17.0 - 2024-11-26
|
||||||
|
|
||||||
## The Immich Photos release
|
## The Immich Photos release
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,13 @@ class Immich::RequestPhotos
|
||||||
|
|
||||||
items = response.dig('assets', 'items')
|
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
|
data << items
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue