Skip to content

Commit

Permalink
Add documentation that the MATCH_END event payload does include the…
Browse files Browse the repository at this point in the history
… team's advantage (if configured) in the fields `wonMapsTeamA` and `wonMapsTeamB`
  • Loading branch information
JensForstmann committed Apr 3, 2024
1 parent cd6de40 commit 1f528d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backend/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1408,11 +1408,13 @@
},
"wonMapsTeamA": {
"type": "number",
"format": "double"
"format": "double",
"description": "number of maps team a has won including a their advantage (if given)"
},
"wonMapsTeamB": {
"type": "number",
"format": "double"
"format": "double",
"description": "number of maps team b has won including a their advantage (if given)"
},
"winnerTeam": {
"allOf": [
Expand Down
2 changes: 2 additions & 0 deletions common/types/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ export interface MapEndEvent extends BaseEvent {

export interface MatchEndEvent extends BaseEvent {
type: 'MATCH_END';
/** number of maps team a has won including a their advantage (if given) */
wonMapsTeamA: number;
/** number of maps team b has won including a their advantage (if given) */
wonMapsTeamB: number;
/** winner of the match or null if it's a draw */
winnerTeam: ITeam | null;
Expand Down

0 comments on commit 1f528d3

Please sign in to comment.