rejectInvitation
@svenvw/fdm-source / fdm-core/src / rejectInvitation
Function: rejectInvitation()
rejectInvitation(
fdm
,invitation_id
,user_id
):Promise
<void
>
Defined in: fdm-core/src/organization.ts:689
Rejects 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 reject.
user_id
string
The ID of the user rejecting the invitation.
Returns
Promise
<void
>
Throws
Throws an error if any database operation fails, if the invitation is not found, or if the invitation is not pending.