busao
    Preparing search index...

    Function handleRoundTrip

    • Adds a roundtrip.

      Parameters

      • i18n: i18n

        The internationalisation object.

      • request: Request

        The request to the associated endpoint.

      • database: BunSQLiteDatabase

        The project's database.

      • date: Date

        The date the trip was registered in.

      • name: string

        The name associated to the trip.

      Returns Promise<Response>

      A response redirecting the user to the "Success" page in case nothing went wrong with the additions. Otherwise, returns a message letting the user know, and recreates the form for the user to try again.