Update scrap_new_items.js

This commit is contained in:
nguyentrungthat 2025-12-10 17:23:17 +07:00
parent deb585e884
commit e9973b6351
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ async function scrapeWithPuppeteer(store) {
if (!payload.currencyID?.trim()) {
const match1 = text.match(/([A-Za-z]{2,3})\s?([\d.]+)/);
if (match1) {
payload.currencyID = match[1] || match[3] || "";
payload.currencyID = match1[1] || match1[3] || "";
}
}
// if (!payload.currencyID?.trim()) payload.currencyID = "";