fix category type error
This commit is contained in:
parent
252c8d9ae2
commit
6ca8a557f0
|
@ -322,7 +322,9 @@ class SiteFeedAnnc
|
|||
end
|
||||
self.collection.aggregate(pipeline).collect do |data|
|
||||
tmp = data['data']
|
||||
if !(tmp['category'].is_a? String)
|
||||
tmp['category'] = tmp['category'][locale]
|
||||
end
|
||||
if @image_version != 'thumb' && !@image_version.nil?
|
||||
if @image_version == 'mobile'
|
||||
tmp["img_src"] = tmp["image"]["mobile"]
|
||||
|
|
Loading…
Reference in New Issue