feat: Add stale process monitor, users route, landing page, archive old scripts
- 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>
This commit is contained in:
23
backend/archive/get-dispensary-ids.ts
Normal file
23
backend/archive/get-dispensary-ids.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { pool } from './src/db/migrate.js';
|
||||
|
||||
async function getDispensaryIds() {
|
||||
const result = await pool.query(
|
||||
`SELECT id, name, slug
|
||||
FROM dispensaries
|
||||
WHERE dutchie_url IS NOT NULL
|
||||
ORDER BY id
|
||||
LIMIT 30`
|
||||
);
|
||||
|
||||
console.log('Dispensary IDs available for scraping:');
|
||||
console.log('=====================================');
|
||||
result.rows.forEach(row => {
|
||||
console.log(`${row.id}: ${row.name} (${row.slug})`);
|
||||
});
|
||||
|
||||
console.log(`\nTotal: ${result.rows.length} dispensaries`);
|
||||
|
||||
await pool.end();
|
||||
}
|
||||
|
||||
getDispensaryIds();
|
||||
Reference in New Issue
Block a user