File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -960,14 +960,11 @@ class Station extends Model {
960960 const activeCutoff = Date . now ( ) / 1000 - stationUpdateLimit * 60 * 60
961961 const results = hasMultiBattles
962962 ? await this . knex ( ) ( STATION_BATTLE_ROW_TABLE )
963- . distinct ( [
964- raw (
965- `${ STATION_BATTLE_ROW_ALIAS } .battle_pokemon_id AS battle_pokemon_id` ,
966- ) ,
967- raw (
968- `${ STATION_BATTLE_ROW_ALIAS } .battle_pokemon_form AS battle_pokemon_form` ,
969- ) ,
970- raw ( `${ STATION_BATTLE_ROW_ALIAS } .battle_level AS battle_level` ) ,
963+ . distinct ( )
964+ . select ( [
965+ `${ STATION_BATTLE_ROW_ALIAS } .battle_pokemon_id as battle_pokemon_id` ,
966+ `${ STATION_BATTLE_ROW_ALIAS } .battle_pokemon_form as battle_pokemon_form` ,
967+ `${ STATION_BATTLE_ROW_ALIAS } .battle_level as battle_level` ,
971968 ] )
972969 . join (
973970 STATION_TABLE ,
You can’t perform that action at this time.
0 commit comments