Only Fire Slack Webhook Once a Day (#4368)

* Only send webhook once per day

* pat clippy's back

* damn query cache
This commit is contained in:
François-Xavier Talbot
2025-09-12 00:38:22 +01:00
committed by GitHub
parent 9361acb78e
commit d8d9720495
2 changed files with 44 additions and 33 deletions

View File

@@ -1,8 +1,14 @@
{
"db_name": "PostgreSQL",
"query": "\n INSERT INTO payout_sources_balance (account_type, amount, pending, recorded)\n SELECT * FROM UNNEST ($1::text[], $2::numeric[], $3::boolean[], $4::timestamptz[])\n ON CONFLICT (recorded, account_type, pending)\n DO UPDATE SET amount = EXCLUDED.amount\n ",
"query": "\n INSERT INTO payout_sources_balance (account_type, amount, pending, recorded)\n SELECT * FROM UNNEST ($1::text[], $2::numeric[], $3::boolean[], $4::timestamptz[])\n ON CONFLICT (recorded, account_type, pending)\n DO UPDATE SET amount = EXCLUDED.amount\n RETURNING xmax = 0 \"xmax!\"\n ",
"describe": {
"columns": [],
"columns": [
{
"ordinal": 0,
"name": "xmax!",
"type_info": "Bool"
}
],
"parameters": {
"Left": [
"TextArray",
@@ -11,7 +17,9 @@
"TimestamptzArray"
]
},
"nullable": []
"nullable": [
null
]
},
"hash": "dbdf1cce30709c3e1066d0a9156e12ce9e4773e3678da6f10f459a26bd0f3931"
"hash": "212d808123a9b4c5d4e72f3f6bed1f0d11f0da5aa0c59385bbabd138d28cb154"
}