From 917a48299c42dd0b3b66ac11fc5c7028ea22f8b9 Mon Sep 17 00:00:00 2001 From: Ian Krieger Date: Thu, 21 Sep 2023 11:47:36 -0400 Subject: [PATCH] fix: update perDay & totalMax defaults --- src/user/library/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/user/library/index.ts b/src/user/library/index.ts index 3d13df89..4543e1de 100644 --- a/src/user/library/index.ts +++ b/src/user/library/index.ts @@ -53,10 +53,10 @@ export function transformNewForm( adSets: form.adSets.map((adSet) => ({ name: adSet.name, billingType: form.billingType, - perDay: 1, + perDay: form.format === CampaignFormat.PushNotification ? 4 : 6, segments: adSet.segments.map((s) => ({ code: s.code, name: s.name })), oses: adSet.oses, - totalMax: 10, + totalMax: form.format === CampaignFormat.PushNotification ? 28 : 60, conversions: transformConversion(adSet.conversions), ads: adSet.creatives .filter((c) => c.included)