Skip to content

Commit

Permalink
fix: prevent running orders tracking for unecessary stores (require t…
Browse files Browse the repository at this point in the history
…racking prefix)
  • Loading branch information
leomp12 authored Jul 9, 2024
1 parent e6b67d4 commit 1361fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/lib/integration/check-orders-tracking.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' +
Expand Down

0 comments on commit 1361fae

Please sign in to comment.