Skip to content

Commit ea30ae3

Browse files
committed
update
1 parent b912f29 commit ea30ae3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/amazon_selling_partner/actions/retrieve-sales-performance-reports/retrieve-sales-performance-reports.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import amazonSellingPartner from "../../amazon_selling_partner.app.mjs";
2+
import { ConfigurationError } from "@pipedream/platform";
23

34
export default {
45
key: "amazon_selling_partner-retrieve-sales-performance-reports",
@@ -79,6 +80,9 @@ export default {
7980
},
8081
},
8182
async run({ $ }) {
83+
if (this.asin && this.sku) {
84+
throw new ConfigurationError("Cannot specify both ASIN and SKU parameters");
85+
}
8286
const { payload } = await this.amazonSellingPartner.getOrderMetrics({
8387
$,
8488
params: {

0 commit comments

Comments
 (0)