Skip to content

Commit

Permalink
Allow more import history
Browse files Browse the repository at this point in the history
  • Loading branch information
forsbergplustwo committed Sep 20, 2023
1 parent 6df869b commit 7bab1f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/import/adaptor/csv_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

class Import::Adaptor::CsvFile
BATCH_SIZE = 1000
MAX_HISTORY = 4.years
MAX_HISTORY = 12.years

CSV_READER_OPTIONS = {
header_converters: :symbol,
Expand Down
2 changes: 1 addition & 1 deletion app/models/import/adaptor/shopify_payments_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Import::Adaptor::ShopifyPaymentsApi
include ShopifyPartnerAPI

BATCH_SIZE = 100
MAX_HISTORY = 7.days
MAX_HISTORY = 3.months
THROTTLE_MIN_TIME_PER_CALL = 0.3.seconds

API_REVENUE_TYPES = {
Expand Down

0 comments on commit 7bab1f0

Please sign in to comment.