mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-14 04:13:46 +02:00
[Breaking] Return all server allocations in API response
This commit is contained in:
@@ -45,12 +45,12 @@ export const rawDataToServerObject = (data: any): Server => ({
|
||||
port: data.sftp_details.port,
|
||||
},
|
||||
description: data.description ? ((data.description.length > 0) ? data.description : null) : null,
|
||||
allocations: [ {
|
||||
ip: data.allocation.ip,
|
||||
alias: null,
|
||||
port: data.allocation.port,
|
||||
default: true,
|
||||
} ],
|
||||
allocations: (data.allocations || []).map((datum: any) => ({
|
||||
ip: datum.ip,
|
||||
alias: datum.ip_alias,
|
||||
port: datum.port,
|
||||
default: datum.is_default,
|
||||
})),
|
||||
limits: { ...data.limits },
|
||||
featureLimits: { ...data.feature_limits },
|
||||
isSuspended: data.is_suspended,
|
||||
|
||||
Reference in New Issue
Block a user