fix: SettingsForm type uses Omit for payment_enabled_types string vs string[]

This commit is contained in:
erio
2026-04-07 02:15:50 +08:00
parent 5c5c4e232c
commit 626da67801
2 changed files with 3 additions and 15 deletions
+1 -1
View File
@@ -1 +1 @@
0.1.108.51
0.1.108.52
+2 -14
View File
@@ -2119,24 +2119,12 @@ interface DefaultSubscriptionGroupOption {
[key: string]: unknown
}
type SettingsForm = SystemSettings & {
type SettingsForm = Omit<SystemSettings, 'payment_enabled_types'> & {
smtp_password: string
turnstile_secret_key: string
linuxdo_connect_client_secret: string
// Payment config fields (loaded from/saved to separate payment config API)
payment_enabled: boolean
payment_min_amount: number
payment_max_amount: number
payment_daily_limit: number
payment_max_pending_orders: number
payment_order_timeout_minutes: number
payment_balance_disabled: boolean
// Payment config — payment_enabled_types stored as comma-separated string in form
payment_enabled_types: string
payment_help_image_url: string
payment_help_text: string
payment_product_name_prefix: string
payment_product_name_suffix: string
payment_load_balance_strategy: string
}
const form = reactive<SettingsForm>({