pub async fn units_for_slot_get_campaigns(
    pool: &DbPool,
    deposit_assets: Option<&HashSet<Address>>,
    publisher: Address,
    active_to_ge: DateTime<Utc>
) -> Result<Vec<Campaign>, PoolError>
Expand description

Get Campaigns for GET /v5/units-for-slot route.

We fetch all campaigns where the Campaign.creator != the publisher [Address].

This method was tested with 5099 deposit assets and it does not reach the postgres query limit.