diff --git a/package.json b/package.json index 8672adf5b..849b0276f 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "lint:js": "npx eslint -c .eslintrc.js --ext .js src", "lint:ts": "npx eslint -c .eslintrc.js --ext .ts src", "lint": "npm run lint:ts && npm run lint:js", + "lint:fix": "npx eslint src --fix", "prepublish": "npm run clean && npm run build", "release": "release-it", "start": "npm run build:venom & tsc app.ts && node app.js", diff --git a/src/api/layers/sender.layer.ts b/src/api/layers/sender.layer.ts index 6b65a8b74..9532344a4 100644 --- a/src/api/layers/sender.layer.ts +++ b/src/api/layers/sender.layer.ts @@ -285,7 +285,7 @@ export class SenderLayer extends ListenerLayer { * Send buttons reply * @param {string} to the numberid xxx@c.us * @param {string} title the titulo - * @param {string} subtitle the subtitle + * @param {string} subtitle the subtitle * @param {array} buttons arrays */ public async sendButtons( @@ -304,29 +304,29 @@ export class SenderLayer extends ListenerLayer { type: type, value: to, function: typeFunction, - isUser: true, + isUser: true }, { param: 'title', type: type, value: title, function: typeFunction, - isUser: true, + isUser: true }, { param: 'subtitle', type: type, value: subtitle, function: typeFunction, - isUser: true, + isUser: true }, { param: 'buttons', type: obj, value: buttons, function: typeFunction, - isUser: true, - }, + isUser: true + } ]; const validating = checkValuesSender(check); if (typeof validating === 'object') { diff --git a/src/lib/wapi/functions/send-buttons.js b/src/lib/wapi/functions/send-buttons.js index 1bdcb1ba6..5621a090f 100644 --- a/src/lib/wapi/functions/send-buttons.js +++ b/src/lib/wapi/functions/send-buttons.js @@ -56,7 +56,7 @@ MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM * Send buttons reply * @param {string} to the numberid xxx@c.us * @param {string} title the titulo - * @param {string} subtitle the subtitle + * @param {string} subtitle the subtitle * @param {array} buttons arrays */ export async function sendButtons(to, title, buttons, subtitle) {