From cfd19aac1d7e6e3637eed8b657c3ed42a27565bf Mon Sep 17 00:00:00 2001 From: Ninjasoturi <52629375+Ninjasoturi@users.noreply.github.com> Date: Wed, 18 May 2022 16:00:20 +0300 Subject: [PATCH] Fixed despawn time verificated checkmark for mad spawns If calc_endminsec was 00:xx this would return null --- server/src/models/Pokemon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/models/Pokemon.js b/server/src/models/Pokemon.js index a91025b60..dcdb1d93d 100644 --- a/server/src/models/Pokemon.js +++ b/server/src/models/Pokemon.js @@ -40,7 +40,7 @@ const getMadSql = q => ( 'pokemon_display.pokemon AS display_pokemon_id', 'pokemon_display.form AS ditto_form', 'weather_boosted_condition AS weather', - raw('IF(calc_endminsec, 1, NULL)') + raw('IF(calc_endminsec IS NOT NULL, 1, NULL)') .as('expire_timestamp_verified'), raw('Unix_timestamp(disappear_time)') .as('expire_timestamp'),