mirror of
https://github.com/amineo/t2-stat-parser.git
synced 2026-01-19 17:34:43 +00:00
Default timePeriod to null instead of undefined
This commit is contained in:
parent
3114913c85
commit
08010956a8
|
|
@ -56,7 +56,7 @@ export class PlayersService {
|
|||
minGames,
|
||||
minShots,
|
||||
limit,
|
||||
timePeriod,
|
||||
timePeriod = null,
|
||||
} = topAccuracyQuery;
|
||||
|
||||
const shotsStat = {
|
||||
|
|
@ -206,7 +206,7 @@ export class PlayersService {
|
|||
}
|
||||
|
||||
async findTopWins(topWinsQuery: TopWinsQueryDto) {
|
||||
const { minGames, limit, timePeriod } = topWinsQuery;
|
||||
const { minGames, limit, timePeriod = null } = topWinsQuery;
|
||||
|
||||
const sinceDate = '(now() - (:timePeriod)::interval)';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue