mirror of
https://github.com/immich-app/immich.git
synced 2026-05-25 09:02:31 -04:00
feat: album map markers endpoint (#27830)
This commit is contained in:
@@ -1,5 +1,25 @@
|
||||
-- NOTE: This file is auto generated by ./sql-generator
|
||||
|
||||
-- MapRepository.getAlbumMapMarkers
|
||||
select
|
||||
"id",
|
||||
"asset_exif"."latitude" as "lat",
|
||||
"asset_exif"."longitude" as "lon",
|
||||
"asset_exif"."city",
|
||||
"asset_exif"."state",
|
||||
"asset_exif"."country"
|
||||
from
|
||||
"asset"
|
||||
inner join "asset_exif" on "asset"."id" = "asset_exif"."assetId"
|
||||
and "asset_exif"."latitude" is not null
|
||||
and "asset_exif"."longitude" is not null
|
||||
inner join "album_asset" on "asset"."id" = "album_asset"."assetId"
|
||||
where
|
||||
"asset"."deletedAt" is null
|
||||
and "album_asset"."albumId" = $1
|
||||
order by
|
||||
"fileCreatedAt" desc
|
||||
|
||||
-- MapRepository.getMapMarkers
|
||||
select
|
||||
"id",
|
||||
@@ -14,8 +34,8 @@ from
|
||||
and "asset_exif"."latitude" is not null
|
||||
and "asset_exif"."longitude" is not null
|
||||
where
|
||||
"asset"."visibility" = $1
|
||||
and "deletedAt" is null
|
||||
"asset"."deletedAt" is null
|
||||
and "asset"."visibility" = $1
|
||||
and (
|
||||
"ownerId" in ($2)
|
||||
or exists (
|
||||
|
||||
Reference in New Issue
Block a user