Skip to content

Commit

Permalink
v2.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gigobyte committed Sep 18, 2020
1 parent e35bd13 commit 1c06942
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hltv",
"version": "2.20.3",
"version": "2.20.4",
"description": "The unofficial HLTV Node.js API",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/endpoints/getTeam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const getTeam = (config: HLTVConfig) => async ({
.split('/')[2]
),
enemyTeam: {
id: Number(matchEl.find('.team-2').attr('href').split('/')[2]),
id: Number(matchEl.find('.team-2').attr('href')!.split('/')[2]),
name: matchEl.find('span.team-2').text()
},
result: matchEl.find('.score-cell').text()
Expand Down

0 comments on commit 1c06942

Please sign in to comment.