busao
    Preparing search index...

    Function handleCancel

    • Cancels a trip by token.

      Parameters

      • i18n: i18n

        The internationalisation object.

      • request: Request

        The request to the associated endpoint.

      • database: BunSQLiteDatabase

        The project's database.

      • tripToken: string

        The token of the trip.

      Returns Promise<Response>

      A response redirecting the user to the "Success" page in case nothing went wrong with the cancellation process. Otherwise, returns a message letting the user know.