Added logic so that we don't create reminders that won't be sent. So, if arraignment date is in more than 7 days it would create 2 reminders. If it is in more than a day but less than 7 days, it would create one reminder. And if it is in less than a day, then no reminders will be created and we get a 410 Gone Status .
Also, added test for those 3 conditions.
Added logic so that we don't create reminders that won't be sent. So, if arraignment date is in more than 7 days it would create 2 reminders. If it is in more than a day but less than 7 days, it would create one reminder. And if it is in less than a day, then no reminders will be created and we get a
410 Gone
Status . Also, added test for those 3 conditions.