From 904691ca8149b141855dc1d4098f486472ea473a Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Sun, 9 Jul 2023 15:57:09 -0300 Subject: [PATCH] fix(all): Minor changes in PROD. --- packages/kb.gbapp/services/KBService.ts | 4 ---- packages/whatsapp.gblib/services/WhatsappDirectLine.ts | 6 ++++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/kb.gbapp/services/KBService.ts b/packages/kb.gbapp/services/KBService.ts index fbe785f87..d14431a8b 100644 --- a/packages/kb.gbapp/services/KBService.ts +++ b/packages/kb.gbapp/services/KBService.ts @@ -68,13 +68,9 @@ import pdf from 'pdf-extraction'; import { GBSSR } from '../../core.gbapp/services/GBSSR.js'; import { GBLogEx } from '../../core.gbapp/services/GBLogEx.js'; import mammoth from 'mammoth'; -import { url } from 'inspector'; -import { min } from 'lodash'; import { GBAdminService } from '../../admin.gbapp/services/GBAdminService.js'; -import { text } from 'body-parser'; import { GBVMService } from '../../basic.gblib/services/GBVMService.js'; import { DialogKeywords } from '../../basic.gblib/services/DialogKeywords.js'; -import { GBConversationalService } from '../../core.gbapp/services/GBConversationalService.js'; import { GBMinService } from '../../core.gbapp/services/GBMinService.js'; /** diff --git a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts index dc52fbcc0..a729bf0b1 100644 --- a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts +++ b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts @@ -937,9 +937,11 @@ export class WhatsappDirectLine extends GBService { switch (provider) { case 'GeneralBots': - // Ignore E2E messages used during initialization. + + // Ignore E2E messages and status updates. - if (req.type && req.type === 'e2e_notification') { + if (req.type && req.type === 'e2e_notification' + || req.isStatus) { return; }