busao
    Preparing search index...

    Function handleAdminUpdateSeatCount

    • Updates the total of seats available.

      Parameters

      • i18n: i18n

        The internationalisation object.

      • request: BunRequest

        The request to the associated endpoint.

      • database: BunSQLiteDatabase

        The project's database.

      • date: Date

        The current date.

      • route: string

        The API route for user search in the tables.

      • maxSeats: number

        The maximum amount of seats of the vehicle.

      Returns Promise<Response>

      A request to update the seat count of the desired direction in case the admin is properly authenticated. Otherwise, returns an "Unauthorized" page.