update sendDeviceInfo follow model special and RAM, flash
This commit is contained in:
parent
00cb88b5f4
commit
93164fbf35
|
|
@ -301,7 +301,6 @@ export const sendDeviceInfora = async () => {
|
||||||
);
|
);
|
||||||
if (listInformation.length > 0) {
|
if (listInformation.length > 0) {
|
||||||
console.log(listInformation);
|
console.log(listInformation);
|
||||||
|
|
||||||
listInformation.map((inf) => {
|
listInformation.map((inf) => {
|
||||||
html += `<tr><td>${inf.PID}</td>
|
html += `<tr><td>${inf.PID}</td>
|
||||||
<td>${inf.VID}</td>
|
<td>${inf.VID}</td>
|
||||||
|
|
@ -334,6 +333,8 @@ export const sendDeviceInfora = async () => {
|
||||||
};
|
};
|
||||||
transporter.sendMail(options);
|
transporter.sendMail(options);
|
||||||
await InfoDevice.createMany(listInformation);
|
await InfoDevice.createMany(listInformation);
|
||||||
|
}else{
|
||||||
|
console.log("listInformation", listInformation)
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue