Skip to content

Commit

Permalink
fix: fix typo when creating contact address
Browse files Browse the repository at this point in the history
  • Loading branch information
owen2345 committed Aug 4, 2020
1 parent 76e8ae5 commit ee4eb56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/plenty_client/account/contact/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def list(contact_id, address_type = '', headers = {}, &block)
end

def create(body = {})
post("#{CONTACT_ADDRESS_BASE_PATH}#{CREATE_A_CONTACT_ADDRESS}", body)
post(build_endpoint("#{CONTACT_ADDRESS_BASE_PATH}#{CREATE_A_CONTACT_ADDRESS}",
contact: contact_id), body)
end

def update(contact_id, address_id, body = {})
Expand Down

0 comments on commit ee4eb56

Please sign in to comment.