@ns8/ns8-shopify-switches
Advanced tools
Comparing version 1.0.159 to 1.0.160
@@ -29,3 +29,5 @@ "use strict"; | ||
const existingOrderRisks = await client.orderRisk.list(orderId); | ||
await Promise.all(existingOrderRisks.map((orderRisk) => client.orderRisk.delete(orderId, orderRisk.id))); | ||
await Promise.all(existingOrderRisks | ||
.filter((orderRisk) => orderRisk.source === 'External') | ||
.map((orderRisk) => client.orderRisk.delete(orderId, orderRisk.id))); | ||
await client.orderRisk.create(orderId, primaryOrderRisk); | ||
@@ -32,0 +34,0 @@ return await Promise.all(fraudAssessments |
{ | ||
"name": "@ns8/ns8-shopify-switches", | ||
"version": "1.0.159", | ||
"version": "1.0.160", | ||
"description": "Custom switches for the shopify integration", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77504
916