Merge pull request 'Deploy to production' (#82) from staging into production

Reviewed-on: #82
This commit is contained in:
zelda 2025-07-14 11:14:29 +10:00
commit ae1156cf28
1 changed files with 8 additions and 3 deletions

View File

@ -72,14 +72,19 @@ export class AllbidsProductBid extends ProductBid {
() => window.angular !== undefined () => window.angular !== undefined
); );
const historiesData = await this.page_context.evaluate(() => { const historiesData = await this.page_context.evaluate((model) => {
let data = null; let data = null;
const elements = document.querySelectorAll(".ng-scope"); const elements = document.querySelectorAll(".ng-scope");
for (let i = 0; i < elements.length; i++) { for (let i = 0; i < elements.length; i++) {
try { try {
const scope = angular.element(elements[i]).scope(); const scope = angular.element(elements[i]).scope();
if (scope?.bidHistory) { if (
scope &&
scope.auction &&
scope?.auction.aucID === model &&
scope?.bidHistory
) {
data = scope.bidHistory; data = scope.bidHistory;
break; break;
} }
@ -96,7 +101,7 @@ export class AllbidsProductBid extends ProductBid {
} }
return data; return data;
}); }, this.model);
return historiesData; return historiesData;
} catch (error) { } catch (error) {