Skip to content

Commit

Permalink
fix(hapi): change variable format
Browse files Browse the repository at this point in the history
  • Loading branch information
Torresmorah committed Mar 2, 2023
1 parent 1c45608 commit a985ee7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hapi/src/routes/create-faucet-account.route.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = {
)

const {
data: { account_name, permissions }
data: { account_name: account, permissions }
} = await axiosUtil.instance.post(
`${eosConfig.apiEndpoint}/v1/chain/get_account`,
{
Expand All @@ -55,8 +55,8 @@ module.exports = {
const keys = permissions[0]?.required_auth?.keys || []
const key = keys[0]?.key

if (account_name === input.name && key === input.public_key) {
return { account: account_name }
if (account === input.name && key === input.public_key) {
return { account }
}

return Boom.badData('Wrong key format')
Expand Down

0 comments on commit a985ee7

Please sign in to comment.