fix(whatsapp.gblib): #262 wrong key value.

This commit is contained in:
rodrigorodriguez 2023-03-07 07:49:00 -03:00
parent 6f62453f4e
commit 565ad4ab6d

View file

@ -911,7 +911,7 @@ export class GBMinService {
); );
const botToken = await credentials.getToken(); const botToken = await credentials.getToken();
const headers = { Authorization: `Bearer ${botToken}` }; const headers = { Authorization: `Bearer ${botToken}` };
const t = new SystemKeywords( ); const t = new SystemKeywords();
const data = await t.getByHttp({ const data = await t.getByHttp({
pid: 0, pid: 0,
url: file.contentUrl, url: file.contentUrl,
@ -1014,7 +1014,9 @@ export class GBMinService {
await this.processEventActivity(min, user, context, step); await this.processEventActivity(min, user, context, step);
} }
} catch (error) { } catch (error) {
const msg = `ERROR: ${error.message} ${error.stack ? error.stack : ''}`; const msg = `ERROR: ${error.message} ${error.error ? error.error.body : ''} ${
error.error ? (error.error.stack ? error.error.stack : '') : ''
}`;
GBLog.error(msg); GBLog.error(msg);
await min.conversationalService.sendText( await min.conversationalService.sendText(