(rec)
| 561 | raise HTTPException(status_code=404, detail=f"No org record for {org_id}") |
| 562 | |
| 563 | def apply(rec): |
| 564 | rec["monthly_credits"] = body.monthly_credits |
| 565 | |
| 566 | updated = await r2_store.update_json(r2_store.org_key(org_id), apply) |
| 567 | await invalidate_org_limit(org_id) |