diff --git a/hapi/src/services/node.service.js b/hapi/src/services/node.service.js index 0c6f2d4e..90048a9b 100644 --- a/hapi/src/services/node.service.js +++ b/hapi/src/services/node.service.js @@ -92,16 +92,10 @@ const getNodeEnpoints = (node) => { } const getFormatNode = (node) => { - let type = node.node_type - - if (!type) { - type = null - } else if (!Array.isArray(type)) { - type = [type] - } + const type = node.node_type const formatNode = { - type: type, + type: type && !Array.isArray(type) ? [type] : type, full: node.full ?? false, location: node.location ?? {}, producer_id: node.producer_id