Skip to content

Commit

Permalink
Remove usage of ajaxDie
Browse files Browse the repository at this point in the history
  • Loading branch information
Hlavtox authored Feb 7, 2024
1 parent 1f541ef commit b6fc1c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/front/ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ public function initContent()
$order = new Order($orderId);

if (!Validate::isLoadedObject($order) || $order->id_customer != (int) Tools::getValue('customer')) {
$this->ajaxDie('KO');
$this->ajaxRender('KO');
}

(new GanalyticsRepository())->markOrderAsSent((int) $orderId);

$this->ajaxDie('OK');
$this->ajaxRender('OK');
}
}

0 comments on commit b6fc1c7

Please sign in to comment.