Files
VPS 4 Deploy Agent b76bb14b0a
continuous-integration/webhook Deploy concluído (VPS4)
fix: serve Wasabi image URLs instead of local /uploads/ paths — prevent broken image links
2026-05-30 17:22:11 +02:00

27 lines
574 B
JavaScript

const { Pool } = require('pg');
const pool = new Pool({
host: process.env.DB_HOST || '10.99.0.3',
port: process.env.DB_PORT || 5432,
user: process.env.DB_USER || 'clube67',
database: process.env.DB_NAME || 'dental_images',
password: process.env.DB_PASSWORD || ''
});
async function run() {
try {
const res = await pool.query(`
SELECT column_name, data_type
FROM information_schema.columns
WHERE table_name = 'images';
`);
console.table(res.rows);
} catch(e) {
console.error(e);
} finally {
pool.end();
}
}
run();