fix(whatsapp.gblib): Fix in bot switching.
This commit is contained in:
parent
929b36d578
commit
69cd2e0188
1 changed files with 2 additions and 2 deletions
|
@ -122,7 +122,7 @@ export class WhatsappDirectLine extends GBService {
|
||||||
const client = await new SwaggerClient({
|
const client = await new SwaggerClient({
|
||||||
spec: JSON.parse(Fs.readFileSync('directline-3.0.json', 'utf8')),
|
spec: JSON.parse(Fs.readFileSync('directline-3.0.json', 'utf8')),
|
||||||
requestInterceptor: req => {
|
requestInterceptor: req => {
|
||||||
req.headers['Authorization'] = `Bearer ${this.min.instance.webchatKey}`;
|
req.headers['Authorization'] = `Bearer ${this.min.instance.whatsappBotKey}`;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.directLineClient = client;
|
this.directLineClient = client;
|
||||||
|
|
Loading…
Add table
Reference in a new issue