Skip to content

Commit

Permalink
fix returning address list as base64
Browse files Browse the repository at this point in the history
Signed-off-by: p4u <[email protected]>
  • Loading branch information
p4u committed Aug 27, 2024
1 parent dc0a87b commit c081522
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions api/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ func (a *API) writableOrganizationAddressesHandler(w http.ResponseWriter, r *htt
userAddresses.Addresses = append(userAddresses.Addresses, org.Address)
}
}
res, err := json.Marshal(userAddresses)
if err != nil {
ErrGenericInternalServerError.Write(w)
return
}
// write the response back to the user
httpWriteJSON(w, res)
httpWriteJSON(w, userAddresses)
}

0 comments on commit c081522

Please sign in to comment.