mirror of
https://github.com/amineo/t2-stat-parser.git
synced 2026-01-20 01:34:47 +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,
|
minGames,
|
||||||
minShots,
|
minShots,
|
||||||
limit,
|
limit,
|
||||||
timePeriod,
|
timePeriod = null,
|
||||||
} = topAccuracyQuery;
|
} = topAccuracyQuery;
|
||||||
|
|
||||||
const shotsStat = {
|
const shotsStat = {
|
||||||
|
|
@ -206,7 +206,7 @@ export class PlayersService {
|
||||||
}
|
}
|
||||||
|
|
||||||
async findTopWins(topWinsQuery: TopWinsQueryDto) {
|
async findTopWins(topWinsQuery: TopWinsQueryDto) {
|
||||||
const { minGames, limit, timePeriod } = topWinsQuery;
|
const { minGames, limit, timePeriod = null } = topWinsQuery;
|
||||||
|
|
||||||
const sinceDate = '(now() - (:timePeriod)::interval)';
|
const sinceDate = '(now() - (:timePeriod)::interval)';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue