Skip to content

Commit 202f9aa

Browse files
committed
rework input to accept context alongside quota updates in a single
object
1 parent 60dbb89 commit 202f9aa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

backend/btrixcloud/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1857,6 +1857,8 @@ class OrgQuotasIn(BaseModel):
18571857
extraExecMinutes: Optional[int] = None
18581858
giftedExecMinutes: Optional[int] = None
18591859

1860+
context: str | None = None
1861+
18601862

18611863
# ============================================================================
18621864
class Plan(BaseModel):

backend/btrixcloud/orgs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,9 +1684,8 @@ async def get_plans(user: User = Depends(user_dep)):
16841684
async def update_quotas(
16851685
quotas: OrgQuotasIn,
16861686
org: Organization = Depends(org_superuser_or_shared_secret_dep),
1687-
context: str | None = None,
16881687
):
1689-
await ops.update_quotas(org, quotas, context)
1688+
await ops.update_quotas(org, quotas, quotas.context)
16901689

16911690
return {"updated": True}
16921691

0 commit comments

Comments
 (0)