KamoCRM

Subscription events store JSON states; billing steps run one row per transaction

Fixkamo-shared-library
Shipped
October 22, 2026 at 10:58 PM UTC
Author
Kamo
Commit
f92e25d

**************** are jsonb, and every caller wrote a bare status like ACTIVE - an invalid JSON insert that rolled back whatever it was auditing (order activation, renewal, the billing job's first run). A value that is not already JSON is stored as {"status": value}. The billing job's steps (prepareNext, rollOne, markOverdueIfLate) now take one subscription or invoice per transaction, so one failure cannot roll back every other customer's invoice.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing