From f1a296c6eb3d24126baec745d216c3ff5fde7a72 Mon Sep 17 00:00:00 2001 From: Mygod Date: Mon, 11 Nov 2024 14:32:18 -0800 Subject: [PATCH] fix: available max pokemon battles --- server/src/models/Station.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/models/Station.js b/server/src/models/Station.js index 342b8c350..d1af7d30f 100644 --- a/server/src/models/Station.js +++ b/server/src/models/Station.js @@ -164,7 +164,7 @@ class Station extends Model { const results = await this.query() .distinct(['battle_pokemon_id', 'battle_pokemon_form', 'battle_level']) .where('is_inactive', false) - .andWhere('end_time', '>', ts) + .andWhere('battle_end', '>', ts) .groupBy(['battle_pokemon_id', 'battle_pokemon_form', 'battle_level']) .orderBy('battle_pokemon_id', 'asc') return {