Skip to main content

talawa-api / Exports / helpers/event/updateEventHelpers/shouldUpdateBaseRecurringEvent

Module: helpers/event/updateEventHelpers/shouldUpdateBaseRecurringEvent

Table of contents

Functions

Functions

shouldUpdateBaseRecurringEvent

shouldUpdateBaseRecurringEvent(recurrenceRuleEndDate, baseRecurringEventEndDate): boolean

This function checks whether the baseRecurringEvent should be updated.

Parameters

NameTypeDescription
recurrenceRuleEndDateundefined | null | stringthe end date of the recurrence rule.
baseRecurringEventEndDateundefined | null | stringthe end date of the base recurring event.

Returns

boolean

true if the recurrence rule is the latest rule that the instances were following, false otherwise.

Defined in

src/helpers/event/updateEventHelpers/shouldUpdateBaseRecurringEvent.ts:8