Skip to main content

getPendingInvitation

@svenvw/fdm-source


@svenvw/fdm-source / fdm-core/src / getPendingInvitation

Function: getPendingInvitation()

getPendingInvitation(fdm, invitation_id): Promise<{ expires_at: Date; invitation_id: string; inviter_firstname: string; inviter_image: string; inviter_surname: string; organization_id: string; organization_name: string; organization_slug: string; role: string; }>

Defined in: fdm-core/src/organization.ts:558

Retrieves the details of a specific pending invitation.

Parameters

fdm

any

The FDM instance providing the connection to the database.

invitation_id

string

The ID of the invitation to retrieve.

Returns

Promise<{ expires_at: Date; invitation_id: string; inviter_firstname: string; inviter_image: string; inviter_surname: string; organization_id: string; organization_name: string; organization_slug: string; role: string; }>

A promise that resolves with the pending invitation details.

Throws

Throws an error if any database operation fails or if the invitation is not found.