Fix filters

This commit is contained in:
Jan Kvetina 2021-12-25 10:51:25 +01:00
parent b36b4d57d3
commit 2f82a7c2bb

View File

@ -10,6 +10,7 @@ WITH s AS (
AND (s.user_id = app.get_item('$USER_ID') OR app.get_item('$USER_ID') IS NULL)
--
AND s.created_at >= COALESCE(app.get_date_item('$TODAY'), TRUNC(SYSDATE))
AND s.created_at < COALESCE(app.get_date_item('$TODAY'), TRUNC(SYSDATE)) + 1
),
l AS (
SELECT