Skip to content

Commit

Permalink
Keep checking an orders status until it's devliered
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe-ochoa committed Feb 13, 2018
1 parent 564241b commit 262d84a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/shipments/shipments_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace :shipments do
task check_shipment_status: :environment do
# Find all shipments that are boxed in batches
# TODO refactor to use .find_in_batches(batch_size: 100)
boxed_shipments = Shipment.where(shipment_status: 'boxed')
boxed_shipments = Shipment.where.not(shipment_status: 'delivered')

# Auth to shippo
Shippo::API.token = ENV['SHIPPO_TOKEN']
Expand Down

0 comments on commit 262d84a

Please sign in to comment.