server/dummyControllers/TransactionController.js
Function debitAccount
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static debitAccount(req, res) {
const { accountNumber } = req.params;
const { debitAmount } = req.body;
if (req.decoded.type !== 'staff') {
return res.status(401).json({
Function creditAccount
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static creditAccount(req, res) {
const { accountNumber } = req.params;
const { creditAmount } = req.body;
if (req.decoded.type !== 'staff') {
return res.status(401).json({