Skip to content

Commit

Permalink
Merge pull request #19 from stevensusas/Steven
Browse files Browse the repository at this point in the history
slight fix
  • Loading branch information
stevensusas authored Nov 12, 2024
2 parents 0db55f5 + c89fb9a commit 5db57ac
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 5db57ac

Please sign in to comment.