update sendDeviceInfo follow model special and RAM, flash

This commit is contained in:
joseph le 2023-10-12 11:12:09 +07:00
parent 00cb88b5f4
commit 93164fbf35
1 changed files with 2 additions and 1 deletions

View File

@ -301,7 +301,6 @@ export const sendDeviceInfora = async () => {
);
if (listInformation.length > 0) {
console.log(listInformation);
listInformation.map((inf) => {
html += `<tr><td>${inf.PID}</td>
<td>${inf.VID}</td>
@ -334,6 +333,8 @@ export const sendDeviceInfora = async () => {
};
transporter.sendMail(options);
await InfoDevice.createMany(listInformation);
}else{
console.log("listInformation", listInformation)
}
} catch (error) {
console.log(error);