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
Name | Type | Description |
---|---|---|
args | MutationRemoveEventArgs | removeEventArgs |
event | InterfaceEvent | an instance of the recurring event to be deleted. |
session | ClientSession | - |
Returns
Promise
<void
>
Remarks
The following steps are followed:
- get the recurrence rule and the base recurring event.
- if the instance is an exception instance or if we're deleting thisInstance only, just delete that single instance.
- if it's a bulk delete operation, handle it accordingly.
Defined in
src/helpers/event/deleteEventHelpers/deleteRecurringEvent.ts:22