Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
gigobyte committed May 18, 2022
1 parent 43fd408 commit 7fee387
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions src/endpoints/getMatches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@ export interface MatchPreview {

export const getMatches =
(config: HLTVConfig) =>
async ({ eventIds, eventType, filter, teamIds }: GetMatchesArguments = {}): Promise<
MatchPreview[]
> => {
async ({
eventIds,
eventType,
filter,
teamIds
}: GetMatchesArguments = {}): Promise<MatchPreview[]> => {
const query = stringify({
...(eventIds ? { event: eventIds } : {}),
...(eventType ? { eventType } : {}),
Expand Down
4 changes: 2 additions & 2 deletions src/endpoints/getPlayerStats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export interface GetPlayerStatsArguments {
rankingFilter?: RankingFilter
maps?: GameMap[]
bestOfX?: BestOfFilter
eventIds? : number[]
eventIds?: number[]
}

export const getPlayerStats =
Expand All @@ -92,7 +92,7 @@ export const getPlayerStats =
: {}),
...(options.maps ? { maps: options.maps.map(toMapFilter) } : {}),
...(options.bestOfX ? { bestOfX: options.bestOfX } : {}),
...(options.eventIds ? {event : options.eventIds} : {})
...(options.eventIds ? { event: options.eventIds } : {})
})

const [$, i$, m$] = await Promise.all([
Expand Down

0 comments on commit 7fee387

Please sign in to comment.