Commit d3ebab5d authored by Emiliano Balbuena's avatar Emiliano Balbuena

(chore): Default CPM

1 merge request!235WIP: Boost Campaigns (&24)
Pipeline #71996785 passed with stages
in 10 minutes and 25 seconds
......@@ -303,7 +303,7 @@ class PaymentsDelegate
*/
public function updateImpressionsByCpm(Campaign $campaign)
{
$cpm = (float) $this->config->get('boost')['cpm'];
$cpm = (float) $this->config->get('boost')['cpm'] ?? 1;
if (!$cpm) {
throw new CampaignException('Missing CPM');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment