Skip to content

Commit

Permalink
Added support for subscribing to stream for ESDB Consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardudycz committed Feb 13, 2025
1 parent e6ded8b commit 68542af
Show file tree
Hide file tree
Showing 6 changed files with 469 additions and 424 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
StreamNotFoundError,
WrongExpectedVersionError,
jsonEvent,
type AllStreamJSONRecordedEvent,
type AppendExpectedRevision,
type ReadStreamOptions as ESDBReadStreamOptions,
type JSONRecordedEvent,
Expand Down Expand Up @@ -208,7 +207,7 @@ export const getEventStoreDBEventStore = (
};

export const mapFromESDBEvent = <EventType extends Event = Event>(
event: JSONRecordedEvent<EventType> | AllStreamJSONRecordedEvent<EventType>,
event: JSONRecordedEvent<EventType>,
): ReadEvent<EventType, EventStoreDBReadEventMetadata> => {
return <ReadEvent<EventType, EventStoreDBReadEventMetadata>>{
type: event.type,
Expand Down
Loading

0 comments on commit 68542af

Please sign in to comment.