Skip to content

Commit

Permalink
fix string message without options
Browse files Browse the repository at this point in the history
  • Loading branch information
avoylenko committed Nov 19, 2023
1 parent 96b05fb commit 9fb54c8
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 9fb54c8

Please sign in to comment.