Skip to content

Commit

Permalink
Merge pull request #149 from dxw/fix/multiple-productive-users
Browse files Browse the repository at this point in the history
Return only active Productive Users
  • Loading branch information
jdudley1123 authored Oct 1, 2024
2 parents 0f7e39f + 863f90c commit 6585ae4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/productive_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ def update_events_for(person, changeset)
end

def person(emails:)
Productive::Person.where(email: emails).first
# Status 1 is active
Productive::Person.where(email: emails, status: 1).first
end
memo_wise :person

Expand Down

0 comments on commit 6585ae4

Please sign in to comment.