Function startSeasonById

  • Starts a new season by the given ID (if it exists). The season must already be created AND inactive.

    Season is identified by its stringified ObjectID.

    Usage

    const seasonId: string = "9e9f99daa45c7";
    const {
    acknowledged,
    matchedCount,
    modifiedCount,
    upsertedCount,
    upsertedId,
    } = await sdk.startSeasonById({ seasonId });

    Parameters

    • params: {
          seasonId: string;
      }
      • seasonId: string

        ID of the season to be started.

    Returns Promise<UpdateResult>

Generated using TypeDoc