feat(web): add search filter for camera lens model. (#21792)

This commit is contained in:
Dag Stuan
2025-10-24 20:41:34 +02:00
committed by GitHub
parent d9cddeb0f1
commit 78fb815cdb
12 changed files with 133 additions and 15 deletions

View File

@@ -290,3 +290,15 @@ where
and "visibility" = $2
and "deletedAt" is null
and "model" is not null
-- SearchRepository.getCameraLensModels
select distinct
on ("lensModel") "lensModel"
from
"asset_exif"
inner join "asset" on "asset"."id" = "asset_exif"."assetId"
where
"ownerId" = any ($1::uuid[])
and "visibility" = $2
and "deletedAt" is null
and "lensModel" is not null