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:
22
backend/archive/check-brand-names.ts
Normal file
22
backend/archive/check-brand-names.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { pool } from './src/db/migrate.js';
|
||||
|
||||
async function checkBrandNames() {
|
||||
const result = await pool.query(`
|
||||
SELECT brand_slug, brand_name
|
||||
FROM brand_scrape_jobs
|
||||
WHERE dispensary_id = 112
|
||||
ORDER BY id
|
||||
LIMIT 20
|
||||
`);
|
||||
|
||||
console.log('\nBrand Names in Database:');
|
||||
console.log('='.repeat(60));
|
||||
result.rows.forEach((row, idx) => {
|
||||
console.log(`${idx + 1}. slug: ${row.brand_slug}`);
|
||||
console.log(` name: ${row.brand_name}`);
|
||||
});
|
||||
|
||||
await pool.end();
|
||||
}
|
||||
|
||||
checkBrandNames().catch(console.error);
|
||||
Reference in New Issue
Block a user