@playlive/realtime-pipeline
    Preparing search index...

    Function mergeFundraisingEventSupportingCampaigns

    • Accumulates fundraising-event supporting campaigns across ticks, keyed by event ID then campaign ID. Delegates to protectCampaignAmounts so that amount_raised / total_amount_raised never decrease due to stale data.

      Parameters

      • existing: Record<string, TiltifyCampaign[]>

        Current per-event supporting-campaign map.

      • incoming: Record<string, TiltifyCampaign[]> | undefined

        Fresh per-event supporting-campaign map (may be undefined).

      Returns Record<string, TiltifyCampaign[]>

      Merged map with monotonically non-decreasing amounts.