From 68eae266259fc0af4fed963d26c652080948a6d0 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Thu, 30 Jul 2026 21:59:39 -0600 Subject: [PATCH] grr --- index.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/index.js b/index.js index 3430c35..42a1671 100644 --- a/index.js +++ b/index.js @@ -403,6 +403,7 @@ app.put('/api/v1/admin/route/:id', (req, res) => { // Update a route res.status(404).json({ error: 'Not Found' }); return; } + console.log(req.body) // Update route const server = req.body.server || row.server; const port = req.body.port || row.port; @@ -415,12 +416,6 @@ app.put('/api/v1/admin/route/:id', (req, res) => { // Update a route conn.query('UPDATE routes SET server = ?, port = ?, auth = ?, secret = ?, block_start = ?, block_length = ?, contact = ? WHERE id = ?', [server, port, auth, secret, block_start, block_length, contact, req.params.id]).then(async () => { res.json({ message: 'Updated' }); - const rows = await conn.query( - 'SELECT secret FROM routes WHERE id = ?', - [req.params.id] - ); - - console.log('DB secret:', rows[0].secret); }).catch(err => { console.error('Error updating route:', err); res.status(500).json({ error: 'Internal server error' });