Skip to content

Commit

Permalink
health-check workflow: update getErrorRpc
Browse files Browse the repository at this point in the history
  • Loading branch information
thaovt287 committed Jun 4, 2024
1 parent b6e47a8 commit cd2ecf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/exports/export-error-rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const _checkHealthRpc = async (type = CHAIN_TYPE.SUBSTRATE, url) => {

const getErrorRpc = async (chainInfo) => {

if (chainInfo.chainStatus.toLowerCase() === STATUS.INACTIVE || (!chainInfo.substrateInfo && !chainInfo.evmInfo)) {
if (chainInfo.chainStatus.toLowerCase() !== STATUS.ACTIVE || (!chainInfo.substrateInfo && !chainInfo.evmInfo)) {
return {}
}

Expand Down

0 comments on commit cd2ecf6

Please sign in to comment.