getPendingInvitationsForOrganization
@svenvw/fdm-source / fdm-core/src / getPendingInvitationsForOrganization
Function: getPendingInvitationsForOrganization()
getPendingInvitationsForOrganization(
fdm
,organization_id
):Promise
<object
[]>
Defined in: fdm-core/src/organization.ts:414
Retrieves a list of pending invitations for a specific organization.
Parameters
fdm
any
The FDM instance providing the connection to the database.
organization_id
string
The id of the organization.
Returns
Promise
<object
[]>
A promise that resolves with an array of pending invitation details, including the email, role, expiration date, and inviter's name.
Throws
Throws an error if any database operation fails.