Skip to content

Commit

Permalink
Fix price creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Calyhre committed May 20, 2017
1 parent a3cc0d5 commit e9df748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/eshop.rake
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace :eshop do
print " #{ISO3166::Country[country]}"
Eshop::Prices.list(country: country, ids: ids).map do |price|
price[:game] = Game.find_by(region: region, nsuid: price[:nsuid])
Price.find_or_create_by!(nsuid: price[:nsuid], country: country).update_attributes!(price)
Price.find_or_initialize_by(nsuid: price[:nsuid], country: country).update_attributes!(price)
end
print " OK\n"
end
Expand Down

0 comments on commit e9df748

Please sign in to comment.