Files
immich/server/src/utils
lif 263f96da87 fix(server): search statistics with personIds returns 500 (#25074)
The searchAssetBuilder was incorrectly adding withFacesAndPeople
select when personIds was provided. This caused a SQL error because
the subquery referenced asset.id which wasn't selected in statistics
queries (only count(*) was selected).

The fix removes personIds from the condition that triggers adding
faces data to the select. The hasPeople filter (for personIds) is
still applied correctly for filtering.

Fixes #25003

Signed-off-by: majiayu000 <1835304752@qq.com>
2026-01-06 08:54:12 -05:00
..
2025-11-14 20:05:05 +00:00
2025-07-15 14:50:13 -04:00
2025-03-28 10:40:09 -04:00
2025-11-17 17:15:44 +00:00
2024-03-20 23:15:09 -04:00
2025-06-17 16:06:40 +00:00
2025-04-08 12:40:03 -04:00