new(security.gblib): SMS Auth.

This commit is contained in:
Rodrigo Rodriguez 2024-03-11 15:06:50 -03:00
parent 4cd64f8a90
commit 40feb37297

View file

@ -359,10 +359,7 @@ export class GBConversationalService {
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = twilio(null, authToken, { accountSid: accountSid });
let botNumber = min.core.getParam<string>(min.instance, 'Bot Number', null);
if (!botNumber) {
botNumber = process.env.BOT_NUMBER;
}
let botNumber = process.env.BOT_NUMBER;
const msg = await client.messages
.create({