(rec)
| 719 | was_entitled = org["status"] in ("active", "trialing", "past_due") |
| 720 | |
| 721 | def apply(rec): |
| 722 | rec["status"] = new_status |
| 723 | rec["seats_purchased"] = new_seats |
| 724 | await r2_store.update_json(key, apply) |
| 725 | |
| 726 | if was_entitled and not entitled: |