8 lines
302 B
JavaScript
8 lines
302 B
JavaScript
const {Client} = require('pg');
|
|
const client = new Client('postgres://postgres:csh%402018@localhost:5432/ai_pharmacy');
|
|
client.connect().then(async () => {
|
|
await client.query("UPDATE batches SET qty_on_hand = 10");
|
|
console.log('Updated all batches to 10 for testing');
|
|
process.exit(0);
|
|
});
|