fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
Showing only changes of commit 69cd2e0188 - Show all commits

View file

@ -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;
@ -677,7 +677,7 @@ export class WhatsappDirectLine extends GBService {
} }
}); });
} catch (e) { } catch (e) {
GBLog.error(e); GBLog .error(e);
} }
} }