fixed typo in controllers/send.js

This commit is contained in:
jzvi12
2022-12-08 16:57:18 -05:00
parent b3b458e41c
commit 33490dc737
3 changed files with 9 additions and 10 deletions

View File

@@ -16,7 +16,7 @@ const { saveMessage } = require('../adapter')
*/
const sendMedia = (client, number = null, fileName = null) => {
if(!client) return cosnole.error("El objeto cliente no está definido.");
if(!client) return console.error("El objeto cliente no está definido.");
try {
number = cleanNumber(number || 0)
const file = `${DIR_MEDIA}/${fileName}`;
@@ -36,7 +36,7 @@ const sendMedia = (client, number = null, fileName = null) => {
*/
const sendMediaVoiceNote = (client, number = null, fileName = null) => {
if(!client) return cosnole.error("El objeto cliente no está definido.");
if(!client) return console.error("El objeto cliente no está definido.");
try {
number = cleanNumber(number || 0)
const file = `${DIR_MEDIA}/${fileName}`;

13
package-lock.json generated
View File

@@ -23,7 +23,7 @@
"qrcode-terminal": "^0.12.0",
"socket.io": "^4.5.1",
"stormdb": "^0.6.0",
"whatsapp-web.js": "^1.18.4",
"whatsapp-web.js": "github:pedroslopez/whatsapp-web.js#fix-buttons-list",
"xlsx": "^0.18.5"
},
"devDependencies": {
@@ -5028,9 +5028,9 @@
"integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
},
"node_modules/whatsapp-web.js": {
"version": "1.18.4",
"resolved": "https://registry.npmjs.org/whatsapp-web.js/-/whatsapp-web.js-1.18.4.tgz",
"integrity": "sha512-Dqu6Q37tDDAcVJ44aMdRE76sI/9rBCUG+NTz1Kxh2w4obX2WtpoRetilxqgx1r4+pFUl58Lf21wGOEwPZ1pT/A==",
"version": "1.18.3-alpha.0",
"resolved": "git+ssh://git@github.com/pedroslopez/whatsapp-web.js.git#c8fe80635afc6fba9913577a3097e8bf1f557a0b",
"license": "Apache-2.0",
"dependencies": {
"@pedroslopez/moduleraid": "^5.0.2",
"fluent-ffmpeg": "^2.1.2",
@@ -9178,9 +9178,8 @@
"integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
},
"whatsapp-web.js": {
"version": "1.18.4",
"resolved": "https://registry.npmjs.org/whatsapp-web.js/-/whatsapp-web.js-1.18.4.tgz",
"integrity": "sha512-Dqu6Q37tDDAcVJ44aMdRE76sI/9rBCUG+NTz1Kxh2w4obX2WtpoRetilxqgx1r4+pFUl58Lf21wGOEwPZ1pT/A==",
"version": "git+ssh://git@github.com/pedroslopez/whatsapp-web.js.git#c8fe80635afc6fba9913577a3097e8bf1f557a0b",
"from": "whatsapp-web.js@github:pedroslopez/whatsapp-web.js#fix-buttons-list",
"requires": {
"@pedroslopez/moduleraid": "^5.0.2",
"archiver": "^5.3.1",

View File

@@ -44,7 +44,7 @@
"qrcode-terminal": "^0.12.0",
"socket.io": "^4.5.1",
"stormdb": "^0.6.0",
"whatsapp-web.js": "^1.18.4",
"whatsapp-web.js": "github:pedroslopez/whatsapp-web.js#fix-buttons-list",
"xlsx": "^0.18.5"
},
"devDependencies": {