Skip to main content

cancelPendingInvitation

@svenvw/fdm-source


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

Function: cancelPendingInvitation()

cancelPendingInvitation(fdm, invitation_id, admin_id): Promise<void>

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

Cancels a pending 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 cancel.

admin_id

string

The ID of the user initiating the cancellation (must be owner or admin).

Returns

Promise<void>

Throws

Throws an error if any database operation fails, if the inviter does not have permissions, or if the invitation is not found.