busao
    Preparing search index...

    Function getRoundTripSuccessContent

    • Builds the content of the success page for a roundtrip.

      Parameters

      • i18n: i18n

        The internationalisation object.

      • database: BunSQLiteDatabase

        The project's database.

      • date: Date

        The date the trip was registered in.

      • oneWayTripToken: string

        The token of the associated one-way trip.

      • returnTripToken: string

        The token of the asssociated return trip.

      Returns responseInformation

      An object containg the content and the status code to be used by the Response this will be tied to.

      Returns the contents of a "Not Found" page in case any of the trips associated with the roundtirp can't be found.

      In case one of the trips was confirmed, the trip table correspondent to the confirmed trip is injected into the content.