fix(WhatsappDirectLine): update sendFileToDevice to default isViewOnce to true and clean up header example
Some checks are pending
GBCI / build (push) Waiting to run

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-06-15 19:17:50 -03:00
parent 0d5a4aee3c
commit cbdf3664bb

View file

@ -650,7 +650,7 @@ export class GBConversationalService {
if (text.endsWith('-zap')) { if (text.endsWith('-zap')) {
let packagePath = GBUtil.getGBAIPath(min.botId, `gbkb`); let packagePath = GBUtil.getGBAIPath(min.botId, `gbkb`);
const localName = path.join('work', packagePath, 'articles', text); const localName = path.join('work', packagePath, 'articles', text + '.docx');
let loader = new DocxLoader(localName); let loader = new DocxLoader(localName);
let doc = await loader.load(); let doc = await loader.load();
text = doc[0].pageContent; text = doc[0].pageContent;