Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
feat: return tx ID after creating new tx
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwigoric committed Nov 28, 2023
1 parent 4173ad9 commit 7235e5a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/routes/loan-ledgers.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ router.put('/', (req, res, next) => {
})

// Return a 200 response
return res.status(200).json({ error: false, message: 'Transaction successfully added' })
return res.status(200).json({
error: false,
message: 'Transaction successfully added',
transactionID: transactionInfo.transactionID
})
} catch (error) {
if (error.name === 'ValidationError') {
return res.status(400).json({
Expand Down

0 comments on commit 7235e5a

Please sign in to comment.