bots/merchantBot/handlers/processing.js
Function processingHandler
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const processingHandler = (data) => {
console.log('=> processingHandler || Message received from ', data.receiver, data.message);
let currentButtonType = userData('getData', data.userJID, null, 'buttonType');
getListAnswersInGroup(data.receiverData.attrs.senderJID, currentButtonType).then(answerList => {
- Create a ticketCreate a ticket