Ends an active season by the given ID (if it exists). The season must already be created AND active AND NOT finished.
Season is identified by its stringified ObjectID.
ObjectID
const seasonId: string = "9e9f99daa45c7";const { acknowledged, matchedCount, modifiedCount, upsertedCount, upsertedId,} = await sdk.endSeasonById({ seasonId });
ID of the season to be ended.
Generated using TypeDoc
Ends an active season by the given ID (if it exists). The season must already be created AND active AND NOT finished.
Season is identified by its stringified
ObjectID
.Usage