Skip to content

Commit

Permalink
feat: lint fix - package
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalan7 committed Sep 8, 2021
1 parent 28d7898 commit 226b490
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 6 additions & 6 deletions src/api/layers/sender.layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export class SenderLayer extends ListenerLayer {
* Send buttons reply
* @param {string} to the numberid [email protected]
* @param {string} title the titulo
* @param {string} subtitle the subtitle
* @param {string} subtitle the subtitle
* @param {array} buttons arrays
*/
public async sendButtons(
Expand All @@ -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') {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/wapi/functions/send-buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
* Send buttons reply
* @param {string} to the numberid [email protected]
* @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) {
Expand Down

0 comments on commit 226b490

Please sign in to comment.