Skip to content

Commit 475b5b3

Browse files
committed
fix(shopify): fetch orders with any status
1 parent 0da66f3 commit 475b5b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ecommerce_integrations/shopify/order.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,9 +425,9 @@ def _fetch_old_orders(from_time, to_time):
425425
from_time = get_datetime(from_time).astimezone().isoformat()
426426
to_time = get_datetime(to_time).astimezone().isoformat()
427427
orders_iterator = PaginatedIterator(
428-
Order.find(created_at_min=from_time, created_at_max=to_time, limit=250)
428+
Order.find(created_at_min=from_time, created_at_max=to_time, limit=250,status='any')
429429
)
430-
430+
431431
for orders in orders_iterator:
432432
for order in orders:
433433
# Using generator instead of fetching all at once is better for

0 commit comments

Comments
 (0)