Skip to main content

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

Module: helpers/event/updateEventHelpers/updateRecurringEvent

Table of contents

Functions

Functions

updateRecurringEvent

updateRecurringEvent(args, event, session): Promise<InterfaceEvent>

This function updates the recurring event.

Parameters

NameTypeDescription
argsMutationUpdateEventArgsupdate event args.
eventInterfaceEventthe event to be updated.
sessionClientSession-

Returns

Promise<InterfaceEvent>

The updated event.

Remarks

The following steps are followed:

  1. get the recurrence rule.
  2. get the base recurring event.
  3. based on the type of update, call the function required.

Defined in

src/helpers/event/updateEventHelpers/updateRecurringEvent.ts:24