Skip to content

Fixed invalid function on to_deal_todo in Lime Easy source runner.rb#80

Open
DonHassanOjner wants to merge 1 commit intomasterfrom
deal_for_easy_source
Open

Fixed invalid function on to_deal_todo in Lime Easy source runner.rb#80
DonHassanOjner wants to merge 1 commit intomasterfrom
deal_for_easy_source

Conversation

@DonHassanOjner
Copy link

Removed the function find_employee_by_integration_id that does not exist on organizations.
Used the function find_person_by_integration_id on the rootmodel object instead.
Added an additional check that the todo has a connected organization.

…izations.

    The function find_person_by_integration_id on a rootmodel object could be used.
    As well an organization must exist on the todo.
@palsson
Copy link
Contributor

palsson commented Jan 7, 2019

There is a method find_employee_by_integration_id on organization,

def find_employee_by_integration_id(integration_id)

I think the problem is that the old code will fail if todo.organization is nil.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants