fix: respect scraper pacing details
This commit is contained in:
@@ -84,7 +84,8 @@ function parseEbayPrice(
|
||||
currency = "CAD";
|
||||
} else if (
|
||||
cleaned.toUpperCase().includes("USD") ||
|
||||
cleaned.toUpperCase().includes("US $")
|
||||
cleaned.toUpperCase().includes("US $") ||
|
||||
cleaned.toUpperCase().includes("US$")
|
||||
) {
|
||||
currency = "USD";
|
||||
} else if (cleaned.includes("£")) {
|
||||
|
||||
@@ -462,18 +462,16 @@ async function fetchSellerDetails(
|
||||
accountType?: string;
|
||||
}> {
|
||||
try {
|
||||
const [reviewData, profileData] = await Promise.all([
|
||||
fetchGraphQLData(
|
||||
GRAPHQL_QUERIES.getReviewSummary,
|
||||
{ userId: posterId },
|
||||
BASE_URL,
|
||||
),
|
||||
fetchGraphQLData(
|
||||
GRAPHQL_QUERIES.getProfileMetrics,
|
||||
{ profileId: posterId },
|
||||
BASE_URL,
|
||||
),
|
||||
]);
|
||||
const reviewData = await fetchGraphQLData(
|
||||
GRAPHQL_QUERIES.getReviewSummary,
|
||||
{ userId: posterId },
|
||||
BASE_URL,
|
||||
);
|
||||
const profileData = await fetchGraphQLData(
|
||||
GRAPHQL_QUERIES.getProfileMetrics,
|
||||
{ profileId: posterId },
|
||||
BASE_URL,
|
||||
);
|
||||
|
||||
const reviewResponse = reviewData as GraphQLReviewResponse;
|
||||
const profileResponse = profileData as GraphQLProfileResponse;
|
||||
|
||||
Reference in New Issue
Block a user