busao
    Preparing search index...

    Function getSingleTripSuccessContent

    • Builds the content of the "Success" page for a single trip.

      Parameters

      • i18n: i18n

        The internationalisation object.

      • database: BunSQLiteDatabase

        The project's database.

      • date: Date
      • tripToken: string

        The token of the trip.

      • trip: TripDirection

        The direction of the trip.

      Returns responseInformation

      An object containing 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 the trip can't be found.

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