Commit ea130a5
fix: qualify created_at with table alias in getGrowthTrends join query
The monthly_stats CTE joined vcons, dialog, and attachments — all three
have a created_at column. The unqualified DATE_TRUNC('month', created_at)
caused 42702: column reference "created_at" is ambiguous. Fixed to v.created_at.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>1 parent 8da93c4 commit ea130a5
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
423 | | - | |
| 422 | + | |
| 423 | + | |
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
| 434 | + | |
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| |||
0 commit comments