HHH v4

PP DailySend report - Campaigns not processed

Edit
equivalent Web Development
Public


V1 Campaigns with 0 postcards



campaigns = [
  57310,
  57312,
  57313,
  57314,
  58035,
]
campaigns = Campaign.where(id: a)
campaigns.pluck(:status)

campaigns.pluck(:version) #make sure all are not four

campaigns = campaigns.reject {_1.draft?}
# sudo trigger processing
campaigns.each { CampaignProcessor.new(_1).call }

campaigns.each do |camp|
  camp.finish! if camp.postcards.none? || camp.postcards.processing_states.none?
end