Skip to main content

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

Module: helpers/event/updateEventHelpers/updateAllInstances

Table of contents

Functions

Functions

updateAllInstances

updateAllInstances(args, event, recurrenceRule, baseRecurringEvent, session): Promise<InterfaceEvent>

This function updates all instances of the recurring event following the given recurrenceRule.

Parameters

NameTypeDescription
argsMutationUpdateEventArgsupdate event args.
eventInterfaceEventthe event to be updated.
recurrenceRuleInterfaceRecurrenceRulethe recurrence rule followed by the instances.
baseRecurringEventInterfaceEventthe base recurring event.
sessionClientSession-

Returns

Promise<InterfaceEvent>

The updated event.

Remarks

The following steps are followed:

  1. get the current event data.
  2. update the data provided in the input.

Defined in

src/helpers/event/updateEventHelpers/updateAllInstances.ts:20