- 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>
14 lines
307 B
TypeScript
14 lines
307 B
TypeScript
import { pool } from './src/db/migrate.js';
|
|
|
|
async function countProducts() {
|
|
const result = await pool.query(
|
|
`SELECT COUNT(*) as total FROM products WHERE dispensary_id = 112`
|
|
);
|
|
|
|
console.log(`Total products for Deeply Rooted: ${result.rows[0].total}`);
|
|
|
|
await pool.end();
|
|
}
|
|
|
|
countProducts();
|