Documentation
    Preparing search index...

    Variable withTransactionConst

    withTransaction: (f: Function, onError: Function) => Promise<any>

    simulate the pg transaction behavior with aborted flag

    Type Declaration

      • (f: Function, onError: Function): Promise<any>
      • Parameters

        • f: Function

          code to run in transaction

        • onError: Function

          error callback

        Returns Promise<any>

        result of f