vn-rfid/test.js

10 lines
408 B
JavaScript

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)]);
}