Skip to main content

declineInvitation

@nmi-agro/fdm-source


@nmi-agro/fdm-source / fdm-core/src / declineInvitation

Function: declineInvitation()

declineInvitation(fdm, invitation_id, user_id): Promise<void>

Defined in: fdm-core/src/invitation.ts:411

Declines a pending invitation on behalf of the acting user.

Parameters

fdm

any

The FDM instance providing the connection to the database.

invitation_id

string

The unique identifier of the invitation to decline.

user_id

string

The ID of the user declining the invitation.

Returns

Promise<void>

Throws

If the invitation is not found, already processed, expired, or the user is not authorized.