busao
    Preparing search index...

    Function clearTrips

    • Cancels all trips of a certain direction.

      Parameters

      • database: BunSQLiteDatabase

        The project's database.

      • date: string

        The date of the trips in YYYY-MM-DD format..

      • trip: TripDirection

        The direction of the trips.

      Returns Promise<
          {
              date: string;
              id: string;
              name: string;
              status: "cancelled"
              | "confirmed"
              | "waitlist";
              trip: "oneWay" | "return";
              tripToken: string;
          }[],
      >

      The trips as updated in the database.