add geo info and do refractor on workers
This commit is contained in:
@@ -9,10 +9,9 @@ class WowMountsWorker < WowSidekiqWorker
|
||||
return unless result.status_code == 200
|
||||
|
||||
result.mounts.each do |mount|
|
||||
wow_mount = WowMount.where(mount_id: mount.id).first_or_initialize
|
||||
wow_mount = WowMount.find_or_initialize_by(mount_id: mount.id)
|
||||
|
||||
# Global data
|
||||
wow_mount.mount_id = mount.id
|
||||
wow_mount.href = mount.key.href
|
||||
|
||||
# Localisation data
|
||||
|
||||
Reference in New Issue
Block a user