diff --git a/app/utils/sendDeviceInfor.ts b/app/utils/sendDeviceInfor.ts index 078b013..632af4c 100644 --- a/app/utils/sendDeviceInfor.ts +++ b/app/utils/sendDeviceInfor.ts @@ -290,17 +290,18 @@ export const sendDeviceInfora = async () => { }); await Promise.all(filePromises); + let specialModel = allKeyValue + .filter((i) => i.key === "MODEL_SPECIAL") + .map((obj) => obj.$attributes.value); + listInformation = listInformation.filter( + (i) => + i.RAM !== "" || + i.flash !== "" || + specialModel.filter((m) => i.PID.includes(m)).length > 0 + ); if (listInformation.length > 0) { console.log(listInformation); - let specialModel = allKeyValue - .filter((i) => i.key === "MODEL_SPECIAL") - .map((obj) => obj.$attributes.value); - listInformation = listInformation.filter( - (i) => - i.RAM !== "" || - i.flash !== "" || - specialModel.filter((m) => i.PID.includes(m)).length > 0 - ); + listInformation.map((inf) => { html += `