Skip to content

Commit

Permalink
fix: do not set unset form on quest pokemon without display
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod committed Jun 7, 2024
1 parent e049c6f commit ed9f4a2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/src/models/Pokestop.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit ed9f4a2

Please sign in to comment.