add geo info and do refractor on workers

This commit is contained in:
2021-04-29 20:44:21 +02:00
parent f7799bb514
commit c5190b48f8
32 changed files with 241 additions and 205 deletions

View File

@@ -2,7 +2,7 @@
class WowPetDetailWorker < WowSidekiqWorker
def perform(pet_id)
return unless (pet = WowPet.where(pet_id: pet_id).first)
return unless (pet = WowPet.find_by(pet_id: pet_id))
RBattlenet.set_options(locale: 'all')
result = RBattlenet::Wow::Pet.find(pet_id)