Skip to content
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

Use custom serializer while persisting events #464

Merged
merged 2 commits into from
May 28, 2024

Conversation

sebastiandittrich
Copy link
Contributor

I stumbled upon issue #414 while setting up custom event serializers.

This PR fixes this issue by also using the custom event serializer while persisting events.

If you have any questions, please reach out to me!

Note About Versioning

I don't know if the previous behavior was a bug or intentional, but "fixing" it changes how events are serialized into the database. Therefore, it probably makes sense to release this in a major version update.

Copy link
Member

@freekmurze freekmurze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a test that proves that change works?

@sebastiandittrich
Copy link
Contributor Author

@freekmurze I added a test, let me know if this works for you 😄

@freekmurze freekmurze merged commit 0625ce8 into spatie:main May 28, 2024
12 checks passed
@freekmurze
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants