fix(WhatsappDirectLine): add missing closing brace for header object in message structure
Some checks are pending
GBCI / build (push) Waiting to run

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-06-11 10:28:13 -03:00
parent 0b748d68fb
commit 75b0e0a9c8
2 changed files with 4 additions and 12 deletions

View file

@ -666,17 +666,9 @@ export class GBConversationalService {
let data: any = {
name: template,
components: [
{
type: 'header',
parameters: [
{
type: 'TEXT'
}
]
}
]
};
//data['components'][0]['parameters'][0][mediaType] = { link: urlMedia };
data['components'][0]['parameters'][0][mediaType] = { link: urlMedia };
await this.sendToMobile(min, mobile, data, null);
GBLogEx.info(min, `Sending answer file to mobile: ${mobile}. Header: ${urlMedia}`);

View file

@ -864,10 +864,10 @@ export class WhatsappDirectLine extends GBService {
{
type: 'HEADER',
format: 'TEXT',
text: 'General Bots',
text: 'Uma novidade para você',
example: {
header_text: [
"General Bots"
"Uma novidade para você"
]
}
},