Skip to content

Commit

Permalink
Fixed issue with SaveCustomer observer
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasLufinity committed May 3, 2023
1 parent 3f92a73 commit d780b25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Observer/SaveCustomer.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function execute(Observer $observer)
$usageCustomer = $this->usageCustomerRepository->getByUsageAndCustomer($usageId, $customerId) ?? $usageCustomer;

$usageCustomer->setUsageId($usage->getId());
$usageCustomer->setCustomerId($customerId);
$usageCustomer->setCustomerId((int)$customerId);
$usageCustomer = $this->usageCustomerRepository->save($usageCustomer);
$savedIds[] = $usageCustomer->getId();
}
Expand Down

0 comments on commit d780b25

Please sign in to comment.