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({
|
||||
spec: JSON.parse(Fs.readFileSync('directline-3.0.json', 'utf8')),
|
||||
requestInterceptor: req => {
|
||||
req.headers['Authorization'] = `Bearer ${this.min.instance.webchatKey}`;
|
||||
req.headers['Authorization'] = `Bearer ${this.min.instance.whatsappBotKey}`;
|
||||
}
|
||||
});
|
||||
this.directLineClient = client;
|
||||
|
@ -677,7 +677,7 @@ export class WhatsappDirectLine extends GBService {
|
|||
}
|
||||
});
|
||||
} catch (e) {
|
||||
GBLog.error(e);
|
||||
GBLog .error(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue