FIX: Transaction Bugs

This commit is contained in:
2025-05-03 15:47:33 +03:30
parent 35163f7ac7
commit 2e11c65b11
3 changed files with 17 additions and 1 deletions
@@ -23,6 +23,9 @@ exports.indexAllTransactions = catchAsync(async (req, res, next) => {
})
exports.createTransaction = catchAsync(async (req, res, next) => {
req.body.userId = req.user._id
req.body.userName = req.user.name
console.log(req.body)
const transactions = await transactionService.createTransaction(req.body)
res.status(201).json({