1
0
Fork 0
forked from OpenNeo/impress

fix nc mall spider for remote ID

This commit is contained in:
Emi Matchu 2012-01-13 15:27:30 -06:00
parent ec9e997ac5
commit 171d691a98

View file

@ -526,7 +526,7 @@ class Item < ActiveRecord::Base
data[item_id_key]['asset_data'].map do |asset_id_str, asset_data|
item.zones_restrict = asset_data['restrict']
item.save
swf_asset = SwfAsset.find_or_initialize_by_type_and_id(SwfAssetType, asset_id_str.to_i)
swf_asset = SwfAsset.find_or_initialize_by_type_and_remote_id(SwfAssetType, asset_id_str.to_i)
swf_asset.type = SwfAssetType
swf_asset.body_id = pet_type.body_id
swf_asset.mall_data = asset_data