From 4c3ecc0484e0a93df6694e6598d7682765ea81c5 Mon Sep 17 00:00:00 2001 From: MohammadHMazarei Date: Thu, 17 Apr 2025 13:32:57 +0330 Subject: [PATCH] ADD & UPDATE: BelongingInventory and create Transaction handler --- components/transaction/transactionController.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/transaction/transactionController.js b/components/transaction/transactionController.js index 60e4986..3220e91 100644 --- a/components/transaction/transactionController.js +++ b/components/transaction/transactionController.js @@ -20,3 +20,12 @@ exports.getUserTransaction = catchAsync(async (req, res, next) => { data: transactions, }) }) + +exports.getBelongingInventory = catchAsync(async (req, res, next) => { + const result = await transactionService.getBelongingInventory(req.params.belongingId) + + res.status(200).json({ + status: 'success', + data: result, + }) +})