getRepeatedDates

Given a date (the first scheduled date for a set of repeating email hooks) an interval, and an end date (last possible date to schedule a hook), creates an array of dates in this range to schedule email hooks for.

  • Parameters

    • scheduledDate: Date
    • endDate: Date

      the latest date to schedule an email for

    • interval: number

      the number of days to increment by

    Returns Date[]