dsad
All checks were successful
Deploy / deploy (push) Successful in 55s

This commit is contained in:
2026-08-11 21:58:47 +02:00
parent 6ca7d6d240
commit 016cf17971
4 changed files with 92 additions and 42 deletions

View File

@@ -519,6 +519,17 @@ final class ListingCatalog
LEFT JOIN listing_categories lc ON lc.id = lcm.category_id
WHERE l.listing_type IN ("place","editorial_event")
AND l.status IN ("draft","published")
AND (
l.listing_type = "place"
OR (
lo.starts_at IS NOT NULL
AND DATE(lo.starts_at) <= CURRENT_DATE()
AND (
lo.recurrence_until IS NULL
OR DATE(lo.recurrence_until) >= CURRENT_DATE()
)
)
)
ORDER BY
CASE l.listing_type
WHEN "place" THEN 1