Skip to content

Commit aee4bbe

Browse files
authored
update sent transaction date with type sql NOW()
`['date_add' => 'NOW()']` does not update the `date_add` column value
1 parent 68c5093 commit aee4bbe

1 file changed

Lines changed: 1 addition & 1 deletion

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

0 commit comments

Comments
 (0)