add geo info and do refractor on workers
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user