vn-rfid/test.js

10 lines
408 B
JavaScript
Raw Normal View History

2024-04-25 13:55:31 +00:00
import con from './db/connect.js';
import inserts from './2024-04-10.js';
console.log('inserts: ', inserts);
for (const insert of inserts) {
console.log('insert: ', insert);
con.query(`
INSERT INTO trys (palletFk, missing, powerType, extra, antennaReads, observationExtra, observationMissing, timestamp, antenna1, antenna2, antenna3, antenna4, total)
VALUES (?)`, [Object.values(insert)]);
}