diff --git a/server/src/models/Gym.js b/server/src/models/Gym.js index 29787eda6..e7106ab9d 100644 --- a/server/src/models/Gym.js +++ b/server/src/models/Gym.js @@ -535,11 +535,7 @@ class Gym extends Model { .whereIn(isMad ? 'pokemon_id' : 'raid_pokemon_id', pokemonIds) .limit(config.getSafe('api.searchResultsLimit')) .orderBy('distance') - .andWhere( - isMad ? 'start' : 'raid_battle_timestamp', - '<=', - isMad ? this.knex().fn.now() : ts, - ) + .andWhere('raid_pokemon_id', '>', 0) .andWhere( isMad ? 'end' : 'raid_end_timestamp', '>=',