diff --git a/.app_version b/.app_version index 7cca7711..c3d16c16 100644 --- a/.app_version +++ b/.app_version @@ -1 +1 @@ -0.17.1 +0.17.2 diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b0b89f8..cb89cc9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed +- Retrieving photos from Immich now using `takenAfter` and `takenBefore` instead of `createdAfter` and `createdBefore`. With `createdAfter` and `createdBefore` Immich was returning no items some years. + +# 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 diff --git a/app/services/immich/request_photos.rb b/app/services/immich/request_photos.rb index c9139e2a..e67c5c31 100644 --- a/app/services/immich/request_photos.rb +++ b/app/services/immich/request_photos.rb @@ -61,7 +61,7 @@ class Immich::RequestPhotos def request_body(page) body = { - createdAfter: start_date, + takenAfter: start_date, size: 1000, page: page, order: 'asc', @@ -70,7 +70,7 @@ class Immich::RequestPhotos return body unless end_date - body.merge(createdBefore: end_date) + body.merge(takenBefore: end_date) end def time_framed_data(data)