mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-10 07:07:21 +00:00
adjusted date param
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
WITH params AS (
|
||||
SELECT
|
||||
NULLIF($1, '')::uuid AS space_id,
|
||||
NULLIF($2, '')::text AS start_month, -- Format: 'MM-YYYY'
|
||||
NULLIF($3, '')::text AS end_month
|
||||
TO_CHAR(TO_DATE(NULLIF($2, ''), 'DD-MM-YYYY'), 'MM-YYYY') AS start_month,
|
||||
TO_CHAR(TO_DATE(NULLIF($3, ''), 'DD-MM-YYYY'), 'MM-YYYY') AS end_month
|
||||
)
|
||||
|
||||
SELECT
|
||||
|
Reference in New Issue
Block a user