Skip to content

Commit a82ea58

Browse files
authored
Merge pull request #104 from gadnis/patch-1
Update sent transaction date with type sql NOW()
2 parents 6c2f9d4 + d962c18 commit a82ea58

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

classes/Hook/HookDisplayBackOfficeHeader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function run()
9090
if (!empty($transaction)) {
9191
$ganalyticsRepository->updateData(
9292
[
93-
'date_add' => 'NOW()',
93+
'date_add' => ['value' => 'NOW()', 'type' => 'sql'],
9494
'sent' => 1,
9595
],
9696
'id_order = ' . (int) $row['id_order'] . ' AND id_shop = ' . (int) $this->context->shop->id

controllers/admin/AdminGanalyticsAjax.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function init()
3333
(new GanalyticsRepository())->updateData(
3434
[
3535
'sent' => 1,
36-
'date_add' => 'NOW()',
36+
'date_add' => ['value' => 'NOW()', 'type' => 'sql'],
3737
],
3838
'id_order = ' . $orderId
3939
);

0 commit comments

Comments
 (0)