feat: album map markers endpoint (#27830)

This commit is contained in:
Jason Rasmussen
2026-04-15 15:58:34 -04:00
committed by GitHub
parent 792cb9148b
commit ac06514db5
9 changed files with 269 additions and 61 deletions
+22 -2
View File
@@ -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 (