Skip to content

Commit

Permalink
fix: Fixed return undefined on sendListMsg
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Dec 12, 2022
1 parent 2cb608d commit eb830ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/messageController.js
Expand Up @@ -168,7 +168,7 @@ export async function sendListMessage(req, res) {

if (results.length === 0) return returnError(req, res, 'Error sending list buttons');

returnSucess(res, phone, results);
returnSucess(res, results);
} catch (error) {
returnError(req, res, error);
}
Expand Down

0 comments on commit eb830ce

Please sign in to comment.