Skip to content

Commit

Permalink
fix: select query
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Sep 7, 2024
1 parent 6cf3b37 commit cac8eab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/src/models/Station.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Station extends Model {
const { onlyAreas } = args.filters
const ts = getEpoch()

const select = ['id', 'name', 'lat', 'lon', 'updated']
const select = ['id', 'name', 'lat', 'lon', 'updated', 'start_time', 'end_time',]

const query = this.query()
.whereBetween('lat', [args.minLat, args.maxLat])
Expand All @@ -32,8 +32,6 @@ class Station extends Model {

if (perms.dynamax) {
select.push(
'start_time',
'end_time',
'battle_level',
'battle_pokemon_id',
'battle_pokemon_form',
Expand Down

0 comments on commit cac8eab

Please sign in to comment.