Files
cannaiq/backend/archive/check-48th-store.ts
Kelly d91c55a344 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>
2025-12-05 04:07:31 -07:00

28 lines
780 B
TypeScript

import { Pool } from 'pg';
const pool = new Pool({
connectionString: 'postgresql://sail:password@localhost:5432/dutchie_menus'
});
async function check() {
try {
const result = await pool.query("SELECT id, name, slug, dutchie_url FROM stores WHERE slug LIKE '%48th%'");
console.log('Stores with "48th" in slug:');
console.log('─'.repeat(80));
result.rows.forEach(store => {
console.log(`ID: ${store.id}`);
console.log(`Name: ${store.name}`);
console.log(`Slug: ${store.slug}`);
console.log(`URL: ${store.dutchie_url}`);
console.log('─'.repeat(80));
});
console.log(`Total: ${result.rowCount}`);
} catch (error: any) {
console.error('Error:', error.message);
} finally {
await pool.end();
}
}
check();