Skip to main content

generateEventData

talawa-api


talawa-api / utilities/createSampleOrganizationUtil / generateEventData

Function: generateEventData()

> generateEventData(users, organizationId): Promise<InterfaceEvent>

Generates event data for a given list of users and organization.

Parameters

users

InterfaceUser[]

The list of users associated with the event

organizationId

string

The ID of the organization the event belongs to

Returns

Promise<InterfaceEvent>

A promise that resolves to the created event

Defined in

src/utilities/createSampleOrganizationUtil.ts:88