fix(striker-ui-api): add anvil description to anvil detail for provision server

main
Tsu-ba-me 3 years ago
parent 82fb477eb3
commit d1f7a731bd
  1. 3
      striker-ui-api/src/lib/request_handlers/anvil/buildQueryAnvilDetail.ts
  2. 1
      striker-ui-api/src/types/AnvilDetail.d.ts

@ -142,6 +142,7 @@ const buildQueryAnvilDetail = ({
SELECT
anv.anvil_uuid,
anv.anvil_name,
anv.anvil_description,
host_list.host_uuid,
host_list.host_name,
host_list.scan_hardware_cpu_cores,
@ -205,6 +206,7 @@ const buildQueryAnvilDetail = ({
[
anvilUUID,
anvilName,
anvilDescription,
hostUUID,
hostName,
hostCPUCores,
@ -231,6 +233,7 @@ const buildQueryAnvilDetail = ({
rowStage = {
anvilUUID,
anvilName,
anvilDescription,
anvilTotalCPUCores: parseInt(anvilTotalCPUCores),
anvilTotalMemory: String(anvilTotalMemory),
anvilTotalAllocatedCPUCores: parseInt(

@ -1,6 +1,7 @@
type AnvilDetailForProvisionServer = {
anvilUUID: string;
anvilName: string;
anvilDescription: string;
hosts: Array<{
hostUUID: string;
hostName: string;

Loading…
Cancel
Save