Skip to content

Commit

Permalink
Merge pull request #1562 from bakaphp/development
Browse files Browse the repository at this point in the history
fix user
  • Loading branch information
kaioken committed Jun 26, 2024
2 parents 63e5df7 + 269b3f7 commit a8f5b2f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
33 changes: 17 additions & 16 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Domains/Connectors/Zoho/Actions/SyncZohoLeadAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function execute(): ?Lead
default => LeadStatus::getByName('active'),
};

$user = UsersAssociatedApps::fromApp($this->app)->where('email', $zohoLead->Owner['email'])->first();
$user = UsersAssociatedApps::fromApp($this->app)->where('email', $zohoLead->Owner['email'])->first()?->user;

if (! $localLead) {
//create lead
Expand Down
2 changes: 1 addition & 1 deletion src/Domains/Inventory/Variants/Models/Variants.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public function toSearchableArray(): array
$attributes = $this->attributes()->get();
foreach ($attributes as $attribute) {
//if its over 100 characters we dont want to index it
if (strlen($attribute->value) > 100) {
if (strlen((string) $attribute->value) > 100) {
continue;
}
$variant['attributes'][$attribute->name] = $attribute->value;
Expand Down

0 comments on commit a8f5b2f

Please sign in to comment.