Skip to main content

talawa-api / Exports / helpers/event/deleteEventHelpers/deleteRecurringEvent

Module: helpers/event/deleteEventHelpers/deleteRecurringEvent

Table of contents

Functions

Functions

deleteRecurringEvent

deleteRecurringEvent(args, event, session): Promise<void>

This function deletes thisInstance / allInstances / thisAndFollowingInstances of a recurring event.

Parameters

NameTypeDescription
argsMutationRemoveEventArgsremoveEventArgs
eventInterfaceEventan instance of the recurring event to be deleted.
sessionClientSession-

Returns

Promise<void>

Remarks

The following steps are followed:

  1. get the recurrence rule and the base recurring event.
  2. if the instance is an exception instance or if we're deleting thisInstance only, just delete that single instance.
  3. if it's a bulk delete operation, handle it accordingly.

Defined in

src/helpers/event/deleteEventHelpers/deleteRecurringEvent.ts:22