bots/merchantBot/handlers/addNewItem.js
Function addNewItemHandler
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
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(() => {
- Create a ticketCreate a ticket