Skip to content

Commit

Permalink
PdoSaver: Allow _id override for unit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Sep 24, 2020
1 parent 9a34bcd commit 1c9bc31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Xhgui/Saver/PdoSaver.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function save(array $data)
$usec = $ts['usec'];

$this->stmt->execute([
'id' => Util::generateId(),
'id' => $data['_id'] ?? Util::generateId(),
'profile' => json_encode($data['profile']),
'url' => $data['meta']['url'],
'SERVER' => json_encode($data['meta']['SERVER']),
Expand Down

0 comments on commit 1c9bc31

Please sign in to comment.