Skip to content

Commit

Permalink
fix: filtering stations without gmax column
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod committed Nov 20, 2024
1 parent 56f775f commit f5ea5fb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions server/src/models/Station.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ class Station extends Model {
onlyAllStations ||
(perms.dynamax &&
((onlyMaxBattles &&
(args.filters[`j${station.battle_level}`] ||
args.filters[
`${station.battle_pokemon_id}-${station.battle_pokemon_form}`
] ||
onlyBattleTier === 'all' ||
onlyBattleTier === station.battle_level)) ||
(onlyBattleTier === 'all'
? args.filters[`j${station.battle_level}`] ||
args.filters[
`${station.battle_pokemon_id}-${station.battle_pokemon_form}`
]
: onlyBattleTier === station.battle_level)) ||
(onlyGmaxStationed && station.total_stationed_gmax))),
)
}
Expand Down

0 comments on commit f5ea5fb

Please sign in to comment.