Skip to content

Commit d5f6d9e

Browse files
committed
fix business ID
1 parent 5feed61 commit d5f6d9e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

components/trustpilot/trustpilot.app.mjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,15 @@ export default {
2020
page, query,
2121
}) {
2222
try {
23+
if (query === "") {
24+
// Trustpilot requires a query to be passed in, default to "a" if empty
25+
query = "a";
26+
}
27+
2328
const businessUnits = await this.searchBusinessUnits({
24-
page,
29+
// Trustpilot requires the page to be 1-indexed
30+
// whereas pipedream is 0-indexed
31+
page: page + 1,
2532
query,
2633
});
2734

0 commit comments

Comments
 (0)