mirror of
https://github.com/Art051/immich.git
synced 2025-08-11 19:29:00 +00:00
fix(server): incorrect number of assets for a person (#7602)
* fix: incorrect number of assets * fix: tests * pr feedback * fix: e2e test * fix: e2e test * fix: e2e test * feat: more tests
This commit is contained in:
@@ -224,8 +224,8 @@ LIMIT
|
||||
20
|
||||
|
||||
-- PersonRepository.getStatistics
|
||||
SELECT DISTINCT
|
||||
COUNT(DISTINCT ("face"."id")) AS "cnt"
|
||||
SELECT
|
||||
COUNT(DISTINCT ("asset"."id")) AS "count"
|
||||
FROM
|
||||
"asset_faces" "face"
|
||||
LEFT JOIN "assets" "asset" ON "asset"."id" = "face"."assetId"
|
||||
|
||||
Reference in New Issue
Block a user