feat: persist browser sessions and update admin workflows
This commit is contained in:
@@ -112,6 +112,7 @@ def _to_response(u: Upstream) -> UpstreamResponse:
|
||||
balance_endpoint=u.balance_endpoint or "",
|
||||
balance_response_path=u.balance_response_path or "",
|
||||
balance_divisor=u.balance_divisor or 1.0,
|
||||
balance_alert_threshold=u.balance_alert_threshold,
|
||||
created_at=u.created_at,
|
||||
updated_at=u.updated_at,
|
||||
)
|
||||
@@ -352,6 +353,7 @@ def create_upstream(
|
||||
balance_endpoint=body.balance_endpoint,
|
||||
balance_response_path=body.balance_response_path,
|
||||
balance_divisor=body.balance_divisor,
|
||||
balance_alert_threshold=body.balance_alert_threshold,
|
||||
)
|
||||
db.add(u)
|
||||
db.commit()
|
||||
|
||||
Reference in New Issue
Block a user