chore: filter to query

This commit is contained in:
Cory Dransfeldt 2024-10-13 15:10:37 -07:00
parent eec1caa321
commit ed65bb8127
No known key found for this signature in database
5 changed files with 8 additions and 13 deletions

View file

@ -3,10 +3,6 @@ SELECT
c.id,
c.date,
c.notes,
'I went to (yet another) concert!' AS description,
'concert' AS type,
CONCAT('/music/concerts?id=', c.id) AS url,
CASE
WHEN c.artist IS NOT NULL THEN
@ -23,6 +19,7 @@ SELECT
json_build_object(
'name', v.name,
'name_short', trim(split_part(v.name, ',', 1)),
'latitude', v.latitude,
'longitude', v.longitude,
'notes', v.notes