Skip to content

Commit

Permalink
key off of completed_at, not created_at
Browse files Browse the repository at this point in the history
  • Loading branch information
jormon committed Oct 13, 2015
1 parent 8e11f7b commit 460e6ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/spree_simple_export/order_exporter.rb
@@ -1,5 +1,5 @@
class SpreeSimpleExport::OrderExporter
def initialize created_at_lt_i, created_at_gt_i, store_id, include_pii
def initialize completed_at_lt_i, completed_at_gt_i, store_id, include_pii
@include_pii = include_pii

@variant_name_map = _variant_name_map.freeze
Expand All @@ -10,7 +10,7 @@ def initialize created_at_lt_i, created_at_gt_i, store_id, include_pii
@order_scope = @order_scope.where(store_id: store_id)
end
@order_scope = @order_scope.where \
created_at: [(Time.at created_at_gt_i)..(Time.at created_at_lt_i)]
completed_at: [(Time.at created_at_gt_i)..(Time.at created_at_lt_i)]
end


Expand Down

0 comments on commit 460e6ad

Please sign in to comment.