Skip to content

Commit

Permalink
Fix bin/setup so it's working with seed_base_item move
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyli97 committed Aug 15, 2024
1 parent 141d959 commit 080721e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def seed_quantity(item_name, organization, storage_location, quantity)
AdjustmentCreateService.new(adjustment).call
end

items_by_category.each do |_category, entries|
JSON.parse(File.read(Rails.root.join("db", "base_items.json"))).each do |_category, entries|
entries.each do |entry|
seed_quantity(entry['name'], pdx_org, inv_arbor, entry['qty']['arbor'])
seed_quantity(entry['name'], pdx_org, inv_pdxdb, entry['qty']['pdxdb'])
Expand Down

0 comments on commit 080721e

Please sign in to comment.