- 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>
18 lines
394 B
TypeScript
18 lines
394 B
TypeScript
import { pool } from './src/db/migrate.js';
|
|
|
|
async function main() {
|
|
try {
|
|
const result = await pool.query(`
|
|
DELETE FROM products WHERE dispensary_id = 149
|
|
`);
|
|
|
|
console.log(`Deleted ${result.rowCount} products from dispensary 149`);
|
|
} catch (error: any) {
|
|
console.error('Error:', error.message);
|
|
} finally {
|
|
await pool.end();
|
|
}
|
|
}
|
|
|
|
main().catch(console.error);
|