mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
pro, server: fix event trigger log cleanup regression in Postgres event triggers
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8460 GitOrigin-RevId: 17e7b73d3b92459ff9149391ecd46ccb9a0846e5
This commit is contained in:
parent
5549c4aa1b
commit
bc75136019
@ -1058,7 +1058,7 @@ deleteEventTriggerLogsTx TriggerLogCleanupConfig {..} = do
|
||||
[ST.st|
|
||||
SELECT id FROM hdb_catalog.event_log
|
||||
WHERE ((delivered = true OR error = true) AND trigger_name = $1)
|
||||
AND created_at < now() - interval '#{qRetentionPeriod}'
|
||||
AND created_at < (now() - interval '#{qRetentionPeriod}') AT TIME ZONE 'UTC'
|
||||
AND locked IS NULL
|
||||
LIMIT $2
|
||||
|]
|
||||
|
Loading…
Reference in New Issue
Block a user