Initial miaojingAI project with image resolution guard
This commit is contained in:
9
inspect_payload.js
Normal file
9
inspect_payload.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const { Client } = require('pg');
|
||||
require('dotenv').config({ path: '/root/miaojingAI/.env.local' });
|
||||
const c = new Client({ connectionString: process.env.LOCAL_DB_URL });
|
||||
(async () => {
|
||||
await c.connect();
|
||||
const r = await c.query(`select id, payload from generation_jobs order by created_at desc limit 3`);
|
||||
for (const row of r.rows) { console.log('---', row.id); console.log(JSON.stringify(row.payload).slice(0, 1200)); }
|
||||
await c.end();
|
||||
})().catch(e => { console.error(e); process.exit(1); });
|
||||
Reference in New Issue
Block a user