diff --git a/lib/courier/models/journey_node.rb b/lib/courier/models/journey_node.rb index 642daf6..f990397 100644 --- a/lib/courier/models/journey_node.rb +++ b/lib/courier/models/journey_node.rb @@ -47,7 +47,7 @@ module JourneyNode # Collect events arriving at the node into a single batch and fire one downstream step with the aggregated payload. The first event into a batch owns the run; later contributing events terminate at the batch step. The batch releases when any of `max_items` is reached, a quiet window of `wait_period` elapses, or the `max_wait_period` ceiling hits. variant -> { Courier::JourneyNode::JourneyBatchNode } - # Add the current event to a digest keyed by the given subscription topic. The digest accumulates events and releases them on the schedule configured for the topic, using the notification template configured on that topic. + # Add the current event to a digest keyed by the given subscription topic. The digest accumulates events and releases them on the schedule configured for the topic, using the notification template configured on that topic. This node's `type` value is `add-to-digest`. # # **The topic must have a template configured.** If the topic has no template when the first event reaches this node, the journey run fails immediately: the run is marked `ERROR`, no digest instance is created, and the journey does not continue past this node. Configure the topic's template before using the topic in a journey. # @@ -244,7 +244,8 @@ class JourneyAddToDigestNode < Courier::Internal::Type::BaseModel # # Add the current event to a digest keyed by the given subscription topic. The # digest accumulates events and releases them on the schedule configured for the - # topic, using the notification template configured on that topic. + # topic, using the notification template configured on that topic. This node's + # `type` value is `add-to-digest`. # # **The topic must have a template configured.** If the topic has no template when # the first event reaches this node, the journey run fails immediately: the run is diff --git a/rbi/courier/models/journey_node.rbi b/rbi/courier/models/journey_node.rbi index f276b42..de2f90e 100644 --- a/rbi/courier/models/journey_node.rbi +++ b/rbi/courier/models/journey_node.rbi @@ -398,7 +398,8 @@ module Courier # Add the current event to a digest keyed by the given subscription topic. The # digest accumulates events and releases them on the schedule configured for the - # topic, using the notification template configured on that topic. + # topic, using the notification template configured on that topic. This node's + # `type` value is `add-to-digest`. # # **The topic must have a template configured.** If the topic has no template when # the first event reaches this node, the journey run fails immediately: the run is