API/services/account.service.js
Showing 0 of 1 total issue
Function createAccount
has a Cognitive Complexity of 10 (exceeds 6 allowed). Consider refactoring. Invalid
Invalid
static async createAccount(userId, type, balance) { try { const user = await User.findUserById(userId); // check if user already exist if (user) {
- Read upRead up