|
@@ -215,14 +215,14 @@ |
|
|
block discarded – undo |
|
215
|
215
|
$countryFullName = Country::where('country_code_char2', $user->country)->pluck('nicename')->first(); |
|
216
|
216
|
$pipedrive = new \Devio\Pipedrive\Pipedrive($token); |
|
217
|
217
|
|
|
218
|
|
- $orgId = $pipedrive->organizations->add(['name'=>$user->company])->getContent()->data->id; |
|
219
|
|
- $person = $pipedrive->persons()->add(['name' => $user->first_name .' '. $user->last_name,'email'=>$user->email, |
|
220
|
|
- 'phone'=>'+'.$user->mobile_code.$user->mobile,'org_id'=>$orgId]); |
|
|
218
|
+ $orgId = $pipedrive->organizations->add(['name'=>$user->company])->getContent()->data->id; |
|
|
219
|
+ $person = $pipedrive->persons()->add(['name' => $user->first_name.' '.$user->last_name, 'email'=>$user->email, |
|
|
220
|
+ 'phone'=>'+'.$user->mobile_code.$user->mobile, 'org_id'=>$orgId]); |
|
221
|
221
|
|
|
222
|
222
|
// $person = $pipedrive->persons()->add(['name' => $user->first_name .' '. $user->last_name,'email'=>$user->email, |
|
223
|
223
|
// 'phone'=>'+'.$user->mobile_code.$user->mobile,'org_id'=>$orgId,'af1c1908b70a61f2baf8b33a975a185cce1aefe5'=>$countryFullName]); |
|
224
|
|
- $personId= $person->getContent()->data->id; |
|
225
|
|
- $organization = $pipedrive->deals()->add(['title'=>$user->company.' '.'deal','person_id'=>$personId,'org_id'=>$orgId]); |
|
|
224
|
+ $personId = $person->getContent()->data->id; |
|
|
225
|
+ $organization = $pipedrive->deals()->add(['title'=>$user->company.' '.'deal', 'person_id'=>$personId, 'org_id'=>$orgId]); |
|
226
|
226
|
|
|
227
|
227
|
} |
|
228
|
228
|
} |
Please login to merge, or discard this patch.