chore: align infrastructure with server
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
const { Pool } = require('pg');
|
||||
async function query() {
|
||||
const pool = new Pool({ connectionString: 'postgresql://postgres:postgres@localhost:5432/xflow' });
|
||||
const res = await pool.query('SELECT nodes FROM "Canvas" WHERE id = \'test-crm\'');
|
||||
console.log(JSON.stringify(res.rows[0].nodes, null, 2));
|
||||
process.exit(0);
|
||||
}
|
||||
query();
|
||||
Reference in New Issue
Block a user