Add phone number from pipedrive

This commit is contained in:
Chaïb Martinez 2018-12-20 17:30:53 +01:00 committed by gregoirenovel
parent 9018a493d2
commit 905d2f1635

View file

@ -10,6 +10,7 @@ class Pipedrive::PersonAdapter
nom: datum['name'], nom: datum['name'],
poste: datum[PIPEDRIVE_POSTE_ATTRIBUTE_ID], poste: datum[PIPEDRIVE_POSTE_ATTRIBUTE_ID],
email: datum.dig('email', 0, 'value'), email: datum.dig('email', 0, 'value'),
tel: datum.dig('phone', 0, 'value'),
organisation: datum['org_name'] organisation: datum['org_name']
} }
end end