fix(all): Create bot working again.

This commit is contained in:
Rodrigo Rodriguez 2023-07-15 19:19:04 -03:00
parent e265d839f2
commit 46bbe87bb4
2 changed files with 3 additions and 0 deletions

View file

@ -393,6 +393,7 @@ export class GBConversationalService {
return Promise.reject(new Error(msg)); return Promise.reject(new Error(msg));
} }
} else { } else {
if (min.instance.smsKey && min.instance.smsSecret) {
return new Promise((resolve: any, reject: any): any => { return new Promise((resolve: any, reject: any): any => {
const nexmo = new Nexmo({ const nexmo = new Nexmo({
apiKey: min.instance.smsKey, apiKey: min.instance.smsKey,
@ -410,6 +411,7 @@ export class GBConversationalService {
}); });
}); });
} }
}
} }
public async sendToMobile(min: GBMinInstance, mobile: string, message: string, conversationId) { public async sendToMobile(min: GBMinInstance, mobile: string, message: string, conversationId) {

View file

@ -902,6 +902,7 @@ export class WhatsappDirectLine extends GBService {
}; };
break; break;
case 'graphapi': case 'graphapi':
break;
} }
if (options) { if (options) {