Skip to main content

generatePostData

talawa-apiDocs


talawa-api / utilities/createSampleOrganizationUtil / generatePostData

Function: generatePostData()

> generatePostData(users, organizationId): Promise<InterfacePost & Document<any, any, InterfacePost>>

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

Parameters

users: InterfaceUser[]

The list of users associated with the post

organizationId: string

The ID of the organization the post belongs to

Returns

Promise<InterfacePost & Document<any, any, InterfacePost>>

A promise that resolves to the created post

Defined in

src/utilities/createSampleOrganizationUtil.ts:151