Skip to content

Commit

Permalink
Update JsonEvent.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinceveve authored Aug 11, 2017
1 parent 6500c1d commit 761da2c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Rxnet/EventStore/NewEvent/JsonEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ public function setId($id)
elseif (!Uuid::isValid($id)) {
$id = Uuid::uuid3(Uuid::NAMESPACE_OID, $id)->getHex();
}
else {
$id = str_replace('-', '', $id);
}
$id = hex2bin($id);
$this->message->setEventId($id);
}
Expand Down

0 comments on commit 761da2c

Please sign in to comment.