Skip to content

Commit

Permalink
fix(deploy): add ?. operator, fallback to defaults when not defined (#74
Browse files Browse the repository at this point in the history
)
  • Loading branch information
MantisClone authored Oct 24, 2023
1 parent 1140a7e commit 688fa3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/commands/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export const handler = ({
`requestnetwork/request-payments-${net}`,
`./subgraph.${net}.yaml`,
{
ipfs: graphNodeInfoByNetwork[net].ipfs || defaultGraphNodeInfo.ipfs,
node: `${graphNodeInfoByNetwork[net].deploy ||
ipfs: graphNodeInfoByNetwork[net]?.ipfs || defaultGraphNodeInfo.ipfs,
node: `${graphNodeInfoByNetwork[net]?.deploy ||
defaultGraphNodeInfo.deploy}`,
},
{
Expand Down

0 comments on commit 688fa3e

Please sign in to comment.