dappros/ethora

View on GitHub
bots/merchantBot/handlers/addNewItem.js

Summary

Maintainability
A
1 hr
Test Coverage

Function addNewItemHandler has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const addNewItemHandler = (data) => {
    console.log('=> addNewItemHandler || Message received from ', data.receiver, data.message);
    let currentButtonType = userData('getData', data.userJID, null, 'buttonType');

    setAnswer(0, data.message, data.userJID, currentButtonType).then(() => {
Severity: Minor
Found in bots/merchantBot/handlers/addNewItem.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status