iya-sts
    Preparing search index...
    answerAfterCommit: (
        operation: any,
        handler: any,
        refusal: any,
    ) => (req: any, res: any, next: any) => any = answerAfterCommit

    Type Declaration

      • (
            operation: any,
            handler: any,
            refusal: any,
        ): (req: any, res: any, next: any) => any
      • Wraps an LDAP handler so that its result is sent only once the writes it made have committed, and an error made by refusal is sent instead when that commit fails.

        Parameters

        • operation: any

          the operation's name (add, search, …)

        • handler: any

          the ldapjs handler

        • refusal: any

          builds the error sent in place of a result whose commit failed, from a message

        Returns (req: any, res: any, next: any) => any

        the wrapped handler