Files
rx.scoreodonto.com/dental-server/test-db2.js
T
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

19 lines
536 B
JavaScript

const { Pool } = require('pg');
const pool = new Pool({
host: '10.99.0.3',
port: 5432,
user: 'clube67',
password: 'clube67_db_pass_9903',
database: 'dental_images'
});
async function test() {
const token = 'bab18d5a-09af-4759-b742-4e1eeb651694';
const email = 'ruibto@gmail.com';
console.log("Looking up token:", token);
const res = await pool.query(`SELECT * FROM clinics_devices WHERE machine_token = $1`, [token]);
console.log("Device found:", res.rows[0] || 'NOT FOUND');
process.exit(0);
}
test();