fix(veesp): IP и характеристики VPS при синке, валюта аккаунта
Docker / build (push) Failing after 21s

Парсинг object-map ответов API (vms/ips), cpus, memory в МБ, IP-массив.
Приоритет валюты аккаунта над baseCurrency хостера; поле в UI для Veesp.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Denozordec
2026-06-29 11:50:25 +07:00
co-authored by Cursor
parent 87aa6949b3
commit 5983c911f2
12 changed files with 280 additions and 25 deletions
+2 -2
View File
@@ -175,10 +175,10 @@ export function toIsoCurrency(currency?: string | null): string {
}
export function effectiveVpsTariffCurrency(vps: Vps, provider?: Provider | null): string {
const provRaw = (provider?.baseCurrency || '').trim()
if (provRaw) return toIsoCurrency(provRaw)
const ownRaw = (vps?.currency || '').trim()
if (ownRaw) return toIsoCurrency(ownRaw)
const provRaw = (provider?.baseCurrency || '').trim()
if (provRaw) return toIsoCurrency(provRaw)
return 'RUB'
}
+1
View File
@@ -36,6 +36,7 @@ export const providerAccountSchema = z.object({
apiLogin: z.string().optional().default(''),
apiPassword: z.string().optional().default(''),
billingMode: billingModeSchema.default('monthly'),
currency: z.string().optional().default(''),
balanceAlertBelow: z.union([z.coerce.number().min(0), z.literal('')]).optional(),
notes: z.string().optional().default(''),
})