fix: State dropdown and locked platform in schedule modal
- State Code → State dropdown with available states - Platform field locked to 'dutchie' (read-only) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -308,6 +308,31 @@ router.get('/retry-stats', async (req, res) => {
|
||||
}
|
||||
});
|
||||
|
||||
// Mark all proxies as active
|
||||
router.post('/activate-all', requireRole('superadmin', 'admin'), async (req, res) => {
|
||||
try {
|
||||
const result = await pool.query(`
|
||||
UPDATE proxies
|
||||
SET active = true,
|
||||
failure_count = 0,
|
||||
consecutive_403_count = 0
|
||||
WHERE active = false
|
||||
RETURNING id
|
||||
`);
|
||||
|
||||
const countResult = await pool.query(`SELECT COUNT(*) as total FROM proxies`);
|
||||
|
||||
res.json({
|
||||
message: `Activated ${result.rowCount} proxies`,
|
||||
activated: result.rowCount,
|
||||
total: parseInt(countResult.rows[0].total)
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('Error activating proxies:', error);
|
||||
res.status(500).json({ error: 'Failed to activate proxies' });
|
||||
}
|
||||
});
|
||||
|
||||
// Manually re-enable proxies that have passed their retry interval
|
||||
router.post('/reenable-failed', requireRole('superadmin', 'admin'), async (req, res) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user