Skip to content

Commit

Permalink
slight fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stevensusas committed Nov 12, 2024
1 parent 7a8a0f8 commit c89fb9a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions backend/routes/userRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -720,7 +713,6 @@ router.post('/request-instance', authenticateToken, authenticateUser, async (req
message: errorMessage,
error: error.message
});

} finally {
client.release();
}
Expand Down

0 comments on commit c89fb9a

Please sign in to comment.