Skip to content

Commit

Permalink
Merge pull request #67 from Zasilkovna/PES-1817_long-order-placing-fix
Browse files Browse the repository at this point in the history
PES-1817: order placing process optimized
  • Loading branch information
zemekoule authored Feb 19, 2024
2 parents 7cc56a6 + 4f8f2a1 commit 880acaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Packetery/Checkout/Observer/Sales/OrderPlaceAfter.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ private function saveData(array $data): void
{
/** @var \Packetery\Checkout\Model\ResourceModel\Order\Collection $collection */
$collection = $this->orderCollectionFactory->create();
$collection->getSelect()->where('0');
$order = $collection->getNewEmptyItem();
$order->setData($data);
$collection->addItem($order);
Expand Down

0 comments on commit 880acaf

Please sign in to comment.