mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 07:54:53 +00:00
Merge pull request #366 from SyncrowIOT/DATA-param-removal
removed param from first CTE
This commit is contained in:
@ -30,7 +30,6 @@ device_logs AS (
|
|||||||
WHERE product.cat_name = 'hps'
|
WHERE product.cat_name = 'hps'
|
||||||
AND "device-status-log".code = 'presence_state'
|
AND "device-status-log".code = 'presence_state'
|
||||||
AND device.uuid::text = P.device_id
|
AND device.uuid::text = P.device_id
|
||||||
AND (P.event_date IS NULL OR "device-status-log".event_time::date = P.event_date)
|
|
||||||
),
|
),
|
||||||
|
|
||||||
presence_detection AS (
|
presence_detection AS (
|
||||||
|
|||||||
Reference in New Issue
Block a user