Function
commitTodoEvents
(
todoId: TodoId,
eventNumber: number,
events: Readonly<ReadonlyArray<TodoEvent>>
)
Source from the content-addressed store, hash-verified
| 38 | pipe(EventBus, Effect.flatMap(publishEventsWithBus(todoId, events))); |
| 39 | |
| 40 | const commitTodoEvents = ( |
| 41 | todoId: TodoId, |
| 42 | eventNumber: number, |
| 43 | events: Readonly<ReadonlyArray<TodoEvent>> |
| 44 | ) => |
| 45 | TodoAggregateRoot.commit({ |
| 46 | id: todoId, |
| 47 | eventNumber, |
| 48 | events: Chunk.fromIterable(events), |
| 49 | }); |
| 50 | |
| 51 | const commitAndPublish = ( |
| 52 | todoId: TodoId, |
Tested by
no test coverage detected