Skip to content

Commit

Permalink
fix(message): fix sendFileFromBase64 with options
Browse files Browse the repository at this point in the history
  • Loading branch information
Saifallak committed Sep 24, 2022
1 parent 76d7de1 commit c6dcc7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/messageController.js
Expand Up @@ -101,7 +101,7 @@ export async function sendFile64(req, res) {
try {
let results = [];
for (const contato of phone) {
results.push(await req.client.sendFile(contato, base64, options.length > 0 ? options : filename));
results.push(await req.client.sendFile(contato, base64, Object.keys(options).length > 0 ? options : filename));
}

if (results.length === 0) return res.status(400).json('Error sending message');
Expand Down

0 comments on commit c6dcc7c

Please sign in to comment.