ADD & UPDATE: BelongingInventory and create Transaction handler
This commit is contained in:
@@ -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,
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user