ADD: deleteTransaction handler
This commit is contained in:
@@ -38,3 +38,12 @@ exports.updateTransaction = catchAsync(async (req, res, next) => {
|
|||||||
data: transaction,
|
data: transaction,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
exports.deleteTransaction = catchAsync(async (req, res, next) => {
|
||||||
|
await transactionService.deleteTransaction(req.params.transactionId)
|
||||||
|
|
||||||
|
res.status(204).json({
|
||||||
|
status: 'success',
|
||||||
|
data: null,
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user