VIBN Frontend for Coolify deployment
This commit is contained in:
22
check-db-via-api.js
Normal file
22
check-db-via-api.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// Use the existing API endpoint to check the database
|
||||
const projectId = 'Sih2VRdZeBglpVNc4eFS'; // Your project ID
|
||||
|
||||
async function checkDB() {
|
||||
try {
|
||||
// Try to fetch extraction handoff
|
||||
const response = await fetch(`http://localhost:3000/api/projects/${projectId}/extraction-handoff`);
|
||||
|
||||
if (response.ok) {
|
||||
const data = await response.json();
|
||||
console.log('\n=== EXTRACTION HANDOFF ===');
|
||||
console.log(JSON.stringify(data.handoff, null, 2));
|
||||
} else {
|
||||
console.log('Extraction handoff response:', response.status, await response.text());
|
||||
}
|
||||
|
||||
} catch (error) {
|
||||
console.error('Error:', error.message);
|
||||
}
|
||||
}
|
||||
|
||||
checkDB();
|
||||
Reference in New Issue
Block a user