ADD & UPDATE: BelongingInventory and create Transaction handler

This commit is contained in:
MohammadHMazarei
2025-04-17 13:32:57 +03:30
parent 0e69c60315
commit 4c3ecc0484
@@ -20,3 +20,12 @@ exports.getUserTransaction = catchAsync(async (req, res, next) => {
data: transactions, 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,
})
})