-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong type of event's timestamp when using some mappers #729
Labels
Comments
Why would we allow |
Does the bug exist in #674 as well? |
because not published events does not have a timestamp: FooEvent.new.timestamp
# => nil |
mpraglowski
added a commit
that referenced
this issue
Sep 8, 2020
mostlyobvious
pushed a commit
that referenced
this issue
Sep 9, 2020
mostlyobvious
pushed a commit
that referenced
this issue
Sep 9, 2020
mostlyobvious
pushed a commit
that referenced
this issue
Sep 9, 2020
No longer a case after merging #674:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using
RubyEventStore::Event
class it is expected that metadata should be eitherTime
instance ornil
(see https://github.com/RailsEventStore/rails_event_store/blob/master/ruby_event_store/lib/ruby_event_store/event.rb#L39 ) and that works for default setup (mapper):but timestamp is
String
when using JSON serializer:The text was updated successfully, but these errors were encountered: