fix(api): trim the connection audit trail with a bounded query on MySQL
What
EverConnectAuditService keeps the newest 500 audit rows. After each write it read the older ones with skip: 500 and no take. MySQL accepts no OFFSET without LIMIT, so TypeORM threw OffsetWithoutLimitNotSupportedError and every audited change of the Ever Platform connection (connect, disconnect, integration changes) answered 500 on MySQL. The ci workflow's MySQL e2e job showed it (ever-connect.e2e-spec.ts: connects with a code and disconnects got 500). SQLite and PostgreSQL were not affected.
The read now takes at most 100 rows past the kept ones per write (one per write is the usual case).
Tests
- New
ever-connect-audit.service.spec.ts: with 503 rows already stored, one write leaves exactly 500, the new row continues the hash chain, and every trimming read carries a limit (that assertion fails without the fix). - MySQL proof: the
ciworkflow e2e matrix (sqlite, postgres, mysql) run on this branch.
🤖 Generated with Claude Code
Summary by cubic
Fixes the Ever Platform connection audit trail returning 500 on MySQL. After each write, the service trimmed rows past the newest 500 with an offset and no limit, which MySQL rejects with OffsetWithoutLimitNotSupportedError; SQLite and PostgreSQL were unaffected. The trim read is now bounded to at most 100 rows per write.
Tests
- Adds
ever-connect-audit.service.spec.ts, which stores 650 rows, verifies two writes leave exactly 500, the new row continues the hash chain, and every trimming read carries a limit. - The
ciworkflow MySQL e2e job (connect and disconnect flows) passes on this branch.