Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
scott grayson authored and scott grayson committed Jan 13, 2025
1 parent 1c0af65 commit f230e1e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Models/HubspotCompany.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,10 @@ public static function updateHubspotCompany($model)
}

try {
Hubspot::crm()->companies()->basicApi()->update($model->hubspot_id, $model->hubspotPropertiesObject($model->hubspotMap));
return Hubspot::crm()->companies()->basicApi()->update($model->hubspot_id, $model->hubspotPropertiesObject($model->hubspotMap));
} catch (ApiException $e) {
Log::error('Hubspot company update failed', ['email' => $model->email]);
}

return $hubspotCompany;
}

/*
Expand Down

0 comments on commit f230e1e

Please sign in to comment.