acceptInvitation
@svenvw/fdm-source / fdm-core/src / acceptInvitation
Function: acceptInvitation()
acceptInvitation(
fdm
,invitation_id
,user_id
):Promise
<void
>
Defined in: fdm-core/src/organization.ts:620
Accepts an invitation to join an organization.
Parameters
fdm
any
The FDM instance providing the connection to the database.
invitation_id
string
The ID of the invitation to accept.
user_id
string
The ID of the user accepting the invitation.
Returns
Promise
<void
>
Throws
Throws an error if any database operation fails, if the invitation is not found, is not pending, or has expired.