feat: add waitlist module, quick payment/transaction edit, and catering fee deduction from professor share
This commit is contained in:
@@ -75,3 +75,14 @@ exports.cancelTransaction = catchAsync(async (req, res, next) => {
|
||||
const payment = await paymentService.cancelTransaction(req.params.transactionId, actorId);
|
||||
return successResponse(res, 200, 'Transaction cancelled successfully', payment);
|
||||
});
|
||||
|
||||
exports.revertTransaction = catchAsync(async (req, res, next) => {
|
||||
const actorId = req.user?._id;
|
||||
const payment = await paymentService.revertTransaction(req.params.transactionId, actorId);
|
||||
return successResponse(res, 200, 'Transaction reverted successfully', payment);
|
||||
});
|
||||
|
||||
exports.deleteTransaction = catchAsync(async (req, res, next) => {
|
||||
const payment = await paymentService.deleteTransaction(req.params.transactionId);
|
||||
return successResponse(res, 200, 'Transaction deleted successfully', payment);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user