Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ildelux committed May 20, 2019
2 parents b4650a7 + 4718d8b commit 169a903
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Model/Event/Strategy/OrderCompleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ public function build()
if(array_key_exists('updated_at', $context)) {
$data['created_at'] = $context['updated_at'];
}
$data['env_remote_ip'] = $context['remote_ip'];
if (isset($context['remote_ip'])){
$data['env_remote_ip'] = $context['remote_ip'];
}
$eventData = array(
'type' => 'sale',
'increment_id' => $context['increment_id']
Expand All @@ -43,4 +45,4 @@ public function build()
}
return $data;
}
}
}

0 comments on commit 169a903

Please sign in to comment.