April 2020
Intermediate to advanced
292 pages
6h 50m
English
The Aggregator we just completed aggregates the status of the naming process. We use that View Data to tell if the NameVideo command has finished processing. At this point though, the new name will not be reflected in the Creators Portal dashboard or in the single video view. That’s a different View Data, and it’s a different Aggregator. We need to add a handler to the creators-videos Aggregator:
| | function createHandlers ({ messageStore, queries }) { |
| | return { |
| | VideoNamed: event => |
| | queries.updateVideoName( |
| | streamToEntityId(event.streamName), |
| | event.position, |
| | event.data.name |
| | ), |
| | } |
| | } |
This handler uses streamToEntityId to ...