FIX: Transaction Bugs
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user