Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: wrap DISTINCT ON in subquery to restore createdAt ordering
PostgreSQL's DISTINCT ON requires ORDER BY to start with the DISTINCT column, so the outer query must re-order by createdAt DESC for proper pagination ordering (most recent threads first). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Loading branch information