Skip to content

Commit

Permalink
Merge pull request #354 from zikriya/develop
Browse files Browse the repository at this point in the history
bug fixed at nodeInfraAuthHelper
  • Loading branch information
zikriya committed Jan 2, 2024
2 parents 026680f + f74244e commit c8f574a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/helpers/authHelpers/nodeInfraAuthHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ export const getKey = (
address: string
): string => {
if (
url.includes(utils.nodeTypes.generator) ||
url.includes("from/" + utils.nodeTypes.generator) ||
nodeType == utils.nodeTypes.generator
) {
return commonFunctions.findKey(
address,
(global as any).environment.generatorNodeApiKeys
);
} else if (
url.includes(utils.nodeTypes.validator) ||
url.includes("from/" + utils.nodeTypes.validator) ||
nodeType == utils.nodeTypes.validator
) {
return commonFunctions.findKey(
address,
(global as any).environment.validatorNodeApiKeys
);
} else if (
url.includes(utils.nodeTypes.master) ||
url.includes("from/" + utils.nodeTypes.master) ||
nodeType == utils.nodeTypes.master
) {
return (global as any).environment.masterNodeApiKey;
Expand Down

0 comments on commit c8f574a

Please sign in to comment.