schedule array retains the hour of the week the user is allowed to send emails during. It ranges from 0 to 167. Each day (Monday, Tuesday, etc.) is represented in 24 hour blocks. For example, Sunday would start at 0, Monday would start at 24, Tuesday would start at 48, etc.
To represent an hour in a day: 8, as an example would represent Sunday at 8am and 32 would represent Monday at 8am.
You'll also need to ensure that
timezone is set appropriately as the sending schedule is affected by the user's set timezone. An accepted timezone value would be
America/New_York. We use moment.js to parse time and you can use
moment.tz.names() to obtain a list of accepted timezones.