Skip to content

Commit

Permalink
fix for binary matching for event id
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicbites committed May 14, 2024
1 parent b9e893e commit c5586e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/radiator/event_store.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ defmodule Radiator.EventStore do
event
end

defp convert_to_uuid(<<uuid::binary-size(36), _>>), do: uuid
defp convert_to_uuid(<<uuid::binary-size(36), ":", _::binary>>), do: uuid
defp convert_to_uuid(uuid), do: uuid

@doc """
Expand Down

0 comments on commit c5586e7

Please sign in to comment.