- Add backend stale process monitoring API (/api/stale-processes) - Add users management route - Add frontend landing page and stale process monitor UI on /scraper-tools - Move old development scripts to backend/archive/ - Update frontend build with new features 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
34 lines
618 B
TypeScript
34 lines
618 B
TypeScript
import { pool } from './src/db/migrate.js';
|
|
|
|
async function main() {
|
|
const result = await pool.query(`
|
|
SELECT
|
|
id,
|
|
name,
|
|
slug,
|
|
website,
|
|
menu_url,
|
|
scraper_template,
|
|
scraper_config,
|
|
address,
|
|
city,
|
|
state,
|
|
zip,
|
|
phone,
|
|
email
|
|
FROM dispensaries
|
|
WHERE slug = 'best-dispensary'
|
|
`);
|
|
|
|
if (result.rows.length === 0) {
|
|
console.log('BEST Dispensary not found');
|
|
} else {
|
|
console.log('BEST Dispensary Details:');
|
|
console.log(JSON.stringify(result.rows[0], null, 2));
|
|
}
|
|
|
|
await pool.end();
|
|
}
|
|
|
|
main().catch(console.error);
|