chore: align infrastructure with server
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
const { Pool } = require('pg');
|
||||
|
||||
async function run() {
|
||||
const pool = new Pool({ connectionString: 'postgresql://postgres:postgres@localhost:5432/xflow' });
|
||||
const res = await pool.query('UPDATE "User" SET role = \'admin\'');
|
||||
console.log('Updated users to admin:', res.rowCount);
|
||||
await pool.end();
|
||||
}
|
||||
|
||||
run().catch(console.error);
|
||||
Reference in New Issue
Block a user