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

Allow overriding commitVersion on single event commit #119

Merged
merged 1 commit into from
Jun 27, 2020

Conversation

albe
Copy link
Owner

@albe albe commented Jun 27, 2020

This allows easier rewriting of streams without having to manually rebuild the commit event batch.

const stream = eventstore.getEventStream('my-stream');
stream.forEach((event, metadata, streamName) => {
   eventstore.commit('my-new-stream', [event], metadata);
});

Resolves #118
Related to #116

This allows easier rewriting of streams without having to manually rebuild the commit event batch.
@albe albe merged commit fa0fdca into master Jun 27, 2020
@albe albe deleted the override-commitversion branch June 27, 2020 12:53
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.

Allow overwriting commitVersion in commit
1 participant