forked from OpenNeo/impress
include zones_restrict in item selector when mall spidering, to avoid flex_source errors
This commit is contained in:
parent
2f607036f2
commit
0cb7fc87df
1 changed files with 1 additions and 1 deletions
|
@ -493,7 +493,7 @@ class Item < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def spider_mall_assets!(limit)
|
||||
items = self.select([arel_table[:id]]).sold_in_mall.spidered_longest_ago.limit(limit).all
|
||||
items = self.select([:id, :zones_restrict]).sold_in_mall.spidered_longest_ago.limit(limit).all
|
||||
puts "- #{items.size} items need asset spidering"
|
||||
AssetStrategy.build_strategies
|
||||
items.each do |item|
|
||||
|
|
Loading…
Reference in a new issue