From 1c8170900d20d8e4e41f63a9f3a459662449769f Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Thu, 30 Jul 2026 21:49:43 -0600 Subject: [PATCH] Attempt 1 to fix update issue --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 40e26bd..8693cbc 100644 --- a/index.js +++ b/index.js @@ -412,7 +412,7 @@ app.put('/api/v1/admin/route/:id', (req, res) => { // Update a route const block_length = req.body.block_length || row.block_length; const contact = req.body.contact || row.contact; console.log(`Updating ${req.params.id} to ${server}:${port} with ${auth}:${secret} for ${block_start} - ${block_start + block_length}. Contact: ${contact}`); - conn.query('UPDATE routes SET server = ?, port = ?, auth = ?, secret = ?, block_start = ?, block_length = ?, contact = ? WHERE id = ?', + 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(() => { res.json({ message: 'Updated' }); }).catch(err => {