Skip to main content

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

Module: helpers/event/deleteEventHelpers/deleteSingleEvent

Table of contents

Functions

Functions

deleteSingleEvent

deleteSingleEvent(eventId, session): Promise<void>

This function deletes a single event.

Parameters

NameType
eventIdstring
sessionClientSession

Returns

Promise<void>

Remarks

The following steps are followed:

  1. remove the associations of the event.
  2. delete the event.

Defined in

src/helpers/event/deleteEventHelpers/deleteSingleEvent.ts:18