Skip to content

Commit a5859f6

Browse files
authored
Delete error log after successful import (#82)
1 parent c2d9883 commit a5859f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Model/OrderImporter/Processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ public function processOrder(CheckoutFormInterface $checkoutForm): void
9999
if (!$this->tryToGetOrder($checkoutForm->getId())) {
100100
$this->allegroReservation->compensateReservation($checkoutForm);
101101
$this->tryCreateOrder($checkoutForm);
102-
$this->removeErrorLogIfExist($checkoutForm);
103102
}
104103
} elseif ($checkoutForm->getStatus() === Status::ALLEGRO_CANCELLED) {
105104
$this->allegroReservation->compensateReservation($checkoutForm);
106105
} else {
107106
$this->allegroReservation->placeReservation($checkoutForm);
108107
}
109108

109+
$this->removeErrorLogIfExist($checkoutForm);
110110
$connection->commit();
111111
} catch (\Exception $e) {
112112
$connection->rollBack();

0 commit comments

Comments
 (0)