Stop rounding the lead id through a JS number

Fixkamo-internal
Shipped
August 4, 2026 at 11:04 PM UTC
Author
kamo
Commit
2edfaa4

Number("1189175700550025222") is 1189175700550025200 — lead ids are unique_rowid() values above Number.MAX_SAFE_INTEGER. The quotes pane converted the route param before listing and creating, so every quote raised from a lead was stored against a lead that does not exist, and the document printed no client details. The id now passes through untouched, and leadId is typed as a string on both the request and the response so neither direction can round it. Lead.uid is already typed this way for exactly this reason. Existing quotes carrying a rounded id have been repaired.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing