From ed9f4a27d8226d3f740d3e113e6bcd16f76006a0 Mon Sep 17 00:00:00 2001 From: Mygod Date: Fri, 7 Jun 2024 12:33:10 -0400 Subject: [PATCH] fix: do not set unset form on quest pokemon without display --- server/src/models/Pokestop.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/src/models/Pokestop.js b/server/src/models/Pokestop.js index 43d9fc99c..aea4620a0 100644 --- a/server/src/models/Pokestop.js +++ b/server/src/models/Pokestop.js @@ -852,8 +852,10 @@ class Pokestop extends Model { fields.push('candy_pokemon_id', 'candy_amount') break case 7: - quest.quest_form_id = quest.quest_form_id ?? 0 - newQuest.key = `${quest.quest_pokemon_id}-${quest.quest_form_id}` + newQuest.key = + quest.quest_form_id === null + ? `${quest.quest_pokemon_id}` + : `${quest.quest_pokemon_id}-${quest.quest_form_id}` fields.push( 'quest_pokemon_id', 'quest_form_id',