Skip to content

Allow overriding commitVersion on single event commit#119

Merged
albe merged 1 commit intomasterfrom
override-commitversion
Jun 27, 2020
Merged

Allow overriding commitVersion on single event commit#119
albe merged 1 commit intomasterfrom
override-commitversion

Conversation

@albe
Copy link
Copy Markdown
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