Give the text-conversations coder a tiebreaker so tied timestamps aren't dropped

FixVOIPService
已装运
2026年8月26日 07:13 UTC
作者
Kamo
提交
ad24ffd

lastActivityAt, so a conversation sharing that exact timestamp was excluded from the lost from the list permanently, not just misordered. Reachable in practice since lastActivityAt falls back to a conversation's own dateCreated when it has no messages, and both message and conversation batches can share a timestamp to the microsecond. Fixes it with a standard keyset pagination tiebreaker: order by (lastActivityAt, legacy timestamp-only value (null id), which intentionally reproduces today's single-column comparison for that one page transition rather than guessing an id that was never encoded. Also: named the duplicated coalesce(max(m.dateCreated), c.dateCreated) expression once instead of leaving it as matching literal text in both SELECT and HAVING; aligned toPayload's null-guard on lastActivityAt so deriving nextcoder from it is as defensive as writing the row field already was; and clamped limit inside list() itself, not only in the controller, so a caller bypassing the controller can't drive

所有更改

就像你看到的运输?

每一个都自动更新您工作空间的地盘。 开始自由,看它成长 一周又一周.

永远开始自由查看定价