Skip to content

Commit

Permalink
fix: return ethereumRegistryAddress in GET /accounts?issuer (#1015)
Browse files Browse the repository at this point in the history
  • Loading branch information
lautarodragan authored Feb 18, 2020
1 parent 91db9c5 commit 192cf7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/accounts/FindAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ export const FindAccount = (

const {
id, email, verified, emailPublic, createdAt, name, bio, ethereumAddress, poeAddress, poeAddressVerified,
ethereumRegistryAddress,
} = response

const isAccountOwner = user && user.issuer === issuer
const alwaysPublicFields = { id, createdAt, name, bio, ethereumAddress, poeAddressVerified }
const alwaysPrivateFields = { poeAddress, verified }
const alwaysPrivateFields = { poeAddress, verified, ethereumRegistryAddress }

ctx.body = {
...alwaysPublicFields,
Expand Down

0 comments on commit 192cf7c

Please sign in to comment.