Skip to content

Commit

Permalink
Make organisation be its own hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed Bennigsen authored and andygeers committed Sep 10, 2019
1 parent 3fa6496 commit 940865b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/prayermate_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ def resize_image(url, filename)
HTTParty.post(api_path("images/resize"), body: { url: url, target_filename: filename }, headers: http_headers)
end

def register_with_promo_code(promo_code, first_name, last_name, email, roles, organisation_details)
register({ promo_code: promo_code }.merge(organisation_details), first_name, last_name, email, roles)
def register_with_promo_code(promo_code, first_name, last_name, email, roles, organisation)
register({ promo_code: promo_code, organisation: organisation }, first_name, last_name, email, roles)
end

def register_with_price_plan(price_plan, first_name, last_name, email, roles, organisation_details)
register({ price_plan: price_plan }.merge(organisation_details), first_name, last_name, email, roles)
def register_with_price_plan(price_plan, first_name, last_name, email, roles, organisation)
register({ price_plan: price_plan, organisation: organisation }, first_name, last_name, email, roles)
end


Expand Down

0 comments on commit 940865b

Please sign in to comment.