From 09928597e0bb4de431ddbfb9a60cf7f4b6ebdc5a Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Fri, 11 Dec 2020 10:42:01 -0500 Subject: [PATCH] include account_sid in createCall and createMessage sent to fs --- lib/routes/api/accounts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/api/accounts.js b/lib/routes/api/accounts.js index c27e369..e4769f2 100644 --- a/lib/routes/api/accounts.js +++ b/lib/routes/api/accounts.js @@ -464,7 +464,7 @@ router.post('/:sid/Messages', async(req, res) => { const serviceUrl = `http://${ip}:3000/v1/createMessage/${sid}`; await validateCreateMessage(logger, sid, req); - const payload = Object.assign({messageSid: uuidv4()}, req.body); + const payload = Object.assign({messageSid: uuidv4(), account_sid: sid}, req.body); logger.debug({payload}, `sending createMessage API request to to ${ip}`); updateLastUsed(logger, sid, req).catch((err) => {}); request({