diff --git a/functions/lib/integration/check-orders-tracking.js b/functions/lib/integration/check-orders-tracking.js index 2ce3bb3..9b315bf 100644 --- a/functions/lib/integration/check-orders-tracking.js +++ b/functions/lib/integration/check-orders-tracking.js @@ -33,7 +33,7 @@ const fetchUndeliveredOrders = async ({ appSdk, storeId }) => { mandaeTrackingPrefix = storeId === 1024 ? 'TIA' : '' } const mandaeToken = appData.mandae_token - if (mandaeToken) { + if (mandaeToken && mandaeTrackingPrefix) { const d = new Date() d.setDate(d.getDate() - 30) const endpoint = '/orders.json' +