From c89fb9af4e3f296f20422e72c6e009ccadd374ea Mon Sep 17 00:00:00 2001 From: stevensusas Date: Tue, 12 Nov 2024 17:12:33 -0500 Subject: [PATCH] slight fix --- backend/routes/userRoutes.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/backend/routes/userRoutes.js b/backend/routes/userRoutes.js index fbb8a0a..e568760 100644 --- a/backend/routes/userRoutes.js +++ b/backend/routes/userRoutes.js @@ -699,13 +699,6 @@ router.post('/request-instance', authenticateToken, authenticateUser, async (req instance: result.rows[0] }); - } catch (err) { - console.error('Transaction error:', err); - await client.query('ROLLBACK'); - throw err; - } finally { - client.release(); - } } catch (error) { await client.query('ROLLBACK'); console.error('Transaction error:', error); @@ -720,7 +713,6 @@ router.post('/request-instance', authenticateToken, authenticateUser, async (req message: errorMessage, error: error.message }); - } finally { client.release(); }