Vetspire.Reminders (vetspire v3.0.0)

View Source

Fix me next time you edit this!

Summary

Functions

filter_valid(query, type)

get_timezone(r)

get_timezone(r, event)

handle_reminder(reminder, date_range, today \\ DateTime.utc_now())

hour_range(today, hours_after)

list_reminders(org_id, args \\ [])

list_sent_reminders(org_id, args \\ [])

run_autoconfirm()

@spec run_autoconfirm() :: :ok | {:error, :autoconfirm_number_not_set}

send_reminder(reminder, event)

Actually execute a single reminder and send it to the client.

send_reminders()

Called by Oban every hour to send out the necessary reminders for that hour.

send_reminders(today, org_id \\ nil)

send_test_email(_, _, _)

send_test_email(reminder, location, email, type)