mirror of
https://github.com/immich-app/immich.git
synced 2026-01-11 06:30:48 -05:00
* feat: private view * pr feedback * sql generation * feat: visibility column * fix: set visibility value as the same as the still part after unlinked live photos * fix: test * pr feedback
32 lines
691 B
SQL
32 lines
691 B
SQL
-- NOTE: This file is auto generated by ./sql-generator
|
|
|
|
-- MapRepository.getMapMarkers
|
|
select
|
|
"id",
|
|
"exif"."latitude" as "lat",
|
|
"exif"."longitude" as "lon",
|
|
"exif"."city",
|
|
"exif"."state",
|
|
"exif"."country"
|
|
from
|
|
"assets"
|
|
inner join "exif" on "assets"."id" = "exif"."assetId"
|
|
and "exif"."latitude" is not null
|
|
and "exif"."longitude" is not null
|
|
where
|
|
"assets"."visibility" = $1
|
|
and "deletedAt" is null
|
|
and (
|
|
"ownerId" in ($2)
|
|
or exists (
|
|
select
|
|
from
|
|
"albums_assets_assets"
|
|
where
|
|
"assets"."id" = "albums_assets_assets"."assetsId"
|
|
and "albums_assets_assets"."albumsId" in ($3)
|
|
)
|
|
)
|
|
order by
|
|
"fileCreatedAt" desc
|