Skip to content

Commit

Permalink
Merge pull request #125 from avoylenko/master
Browse files Browse the repository at this point in the history
fix string message without options
  • Loading branch information
chrishubert authored Nov 21, 2023
2 parents 96b05fb + 9fb54c8 commit 8d3ea5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/clientController.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const sendMessage = async (req, res) => {
let messageOut
switch (contentType) {
case 'string':
if (options.media) {
if (options && options.media) {
const media = options.media
options.media = new MessageMedia(media.mimetype, media.data, media.filename = null, media.filesize = null)
}
Expand Down

0 comments on commit 8d3ea5c

Please sign in to comment.