feat: default upstream balance config for new upstream form
defaultForm() now uses sub2api presets for balance fields: - balance_endpoint: /auth/me - balance_response_path: data.balance - balance_divisor: 1.0 Platform presets in handlePlatformChange() remain unchanged.
This commit is contained in:
@@ -419,8 +419,8 @@ const defaultForm = () => ({
|
||||
enabled: true,
|
||||
check_interval_seconds: 600,
|
||||
timeout_seconds: 30,
|
||||
balance_endpoint: '',
|
||||
balance_response_path: '',
|
||||
balance_endpoint: '/auth/me',
|
||||
balance_response_path: 'data.balance',
|
||||
balance_divisor: 1.0,
|
||||
balance_alert_threshold: null as number | null,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user