Skip to content

Commit

Permalink
Merge pull request #952 from lenisko/nests-active-fix
Browse files Browse the repository at this point in the history
Nest: query only existing pokemons
  • Loading branch information
TurtIeSocks authored Feb 10, 2024
2 parents 9d37a99 + 9d97481 commit ef19fb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/models/Nest.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ class Nest extends Model {
const results = /** @type {FullNest[]} */ (
await this.query()
.select(['pokemon_id', 'pokemon_form'])
.where('pokemon_id', '!=', 0)
.whereNotNull('pokemon_id')
.groupBy('pokemon_id', 'pokemon_form')
.orderBy('pokemon_id', 'asc')
Expand Down

0 comments on commit ef19fb8

Please sign in to comment.