[fix #1701] Use DS form to enroll admin

This commit is contained in:
simon lehericey 2018-05-24 16:40:39 +02:00
parent 0b19f1a8c5
commit aaebcd3494
9 changed files with 137 additions and 1 deletions

View file

@ -33,4 +33,15 @@ class Pipedrive::DealAdapter
Pipedrive::API.put_deal(deal_id, params)
end
def self.add_deal(organisation_id, person_id, title)
params = {
org_id: organisation_id,
person_id: person_id,
title: title,
user_id: Pipedrive::PersonAdapter::PIPEDRIVE_ROBOT_ID
}
Pipedrive::API.post_deal(params)
end
end