lib/pipekit/deal.rb in pipekit-1.2.0 vs lib/pipekit/deal.rb in pipekit-2.0.0

- old
+ new

@@ -8,10 +8,10 @@ end # Finds a person by their email, then finds the first deal related to that # person and updates it with the params provided def update_by_person(email, params, person_repo: Person.new) - person = person_repo.find_by(email: email) + person = person_repo.find_exactly_by_email(email) deal = get_by_person_id(person[:id], person_repo: person_repo).first update(deal[:id], params) end end