fix: respect scraper pacing details

This commit is contained in:
old4ever committed 2026-04-27 00:13:42 -04:00
1 parent 0f77155c8d
commit b73faa35da
4 files changed
+95 -13

No files matched your search

+2 -1
View File
@@ -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("£")) {
+10 -12
View File
@@ -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;