Skip to content

Commit

Permalink
fix(hapi): save features as an array
Browse files Browse the repository at this point in the history
  • Loading branch information
Torresmorah committed Dec 8, 2022
1 parent c9003ef commit b30af1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hapi/src/services/node.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ const getFormatNode = node => {
}
}

if (typeof node?.features === 'string') {
node.features = [node.features]
}

if (node.features?.length || !!node.keys) {
formatNode.node_info = {
data: {
Expand Down

0 comments on commit b30af1d

Please sign in to comment.