Skip to content

Commit

Permalink
feat: adding default scheduling unit
Browse files Browse the repository at this point in the history
  • Loading branch information
shrouti1507 committed Jun 20, 2024
1 parent 4cb1800 commit 178aeba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdk/v2/destinations/clicksend/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const deduceSchedule = (eventLevelSchedule, timestamp, destConfig) => {
if (isDefinedAndNotNullAndNotEmpty(eventLevelSchedule) && !Number.isNaN(destConfig)) {
return eventLevelSchedule;
}
const { defaultCampaignScheduleUnit, defaultCampaignSchedule } = destConfig;
const { defaultCampaignScheduleUnit = 'minute', defaultCampaignSchedule = 0 } = destConfig;
// Parse the input timestamp into a Date object
const date = new Date(timestamp);

Expand Down

0 comments on commit 178aeba

Please sign in to comment.