Skip to content

Instantly share code, notes, and snippets.

@jasonmitchell
Last active May 25, 2016 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonmitchell/185a01a7613692cc0ff8a07dbc3cd726 to your computer and use it in GitHub Desktop.
Save jasonmitchell/185a01a7613692cc0ff8a07dbc3cd726 to your computer and use it in GitHub Desktop.
fromCategory('MyOldStreamCategory')
.whenAny(function (s, e) {
var newStreamName = e.streamId.replace('MyOldStreamCategory', 'MyNewStreamCategory');
emit(newStreamName, e.eventType, e.data, e.metadata);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment