Skip to content

Commit c146e86

Browse files
committed
fix: add admin timeout
1 parent 2aebf68 commit c146e86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/api/memobase_server/auth/admin_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async def get_project_usage(project_id: str) -> Promise[BillingData]:
1111
async with AsyncClient(
1212
base_url=ADMIN_URL, headers={"Authorization": f"Bearer {ADMIN_TOKEN}"}
1313
) as client:
14-
response = await client.get(f"/api/v1/billing/project/{project_id}")
14+
response = await client.get(f"/api/v1/billing/project/{project_id}", timeout=10)
1515

1616
if response.status_code != 200:
1717
return Promise.reject(

0 commit comments

Comments
 (0)