Commit 273dd33
Fix bot-sweep FILTER clause param encoding
postgres-js can't encode a raw JS Date as an ad-hoc template parameter
(it only knows the target type when drizzle recognises the column). The
FILTER (WHERE finished_at >= $cutoff) clauses were throwing
ERR_INVALID_ARG_TYPE at query time. Switch to an ISO string with an
explicit ::timestamptz cast.
Verified end-to-end against prod: identified 39 suspects / 17 creation
clusters across 244 active+queued sessions, email delivered.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent d129b01 commit 273dd33
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
| |||
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
97 | | - | |
98 | | - | |
| 102 | + | |
| 103 | + | |
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
| |||
0 commit comments