@playlive/tiltify-core
    Preparing search index...

    Function isCampaignForCause

    • Returns true if campaign belongs to the cause identified by causeId.

      Classification rules (any one is sufficient):

      1. campaign.cause_id === causeId — direct match.
      2. campaign.fundraising_event_id is in options.alwaysIncludeEventIds.
      3. The fundraising event resolved by client.GetFundraiser(...) has cause_id === causeId.

      Rule 3 issues at most one REST call per unique event ID across the lifetime of options.eventCache. Lookup failures are swallowed and treated as "not for this cause" — this keeps a flaky Tiltify event-detail endpoint from breaking the whole campaign list.

      Parameters

      Returns Promise<boolean>