View Source Glific.Triggers.Helper (Glific v5.1.6)
The trigger helper for the trigger system that deals with the complexity of time queries
Link to this section Summary
Functions
Given a time and the frequency of occurence, compute the next time the event can potentially occur
Link to this section Functions
@spec compute_next(map()) :: DateTime.t() | {:error, any()}
Given a time and the frequency of occurence, compute the next time the event can potentially occur