From 634331357916fe69ee65862aee6ff3fed71e59d3 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Sun, 22 Nov 2020 11:24:48 -0300 Subject: [PATCH] fix(core.gbapp): Fixing script name in call. --- packages/core.gbapp/services/GBMinService.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/core.gbapp/services/GBMinService.ts b/packages/core.gbapp/services/GBMinService.ts index afeb41e64..ec4e14aa4 100644 --- a/packages/core.gbapp/services/GBMinService.ts +++ b/packages/core.gbapp/services/GBMinService.ts @@ -173,7 +173,7 @@ export class GBMinService { let startDialog = activeMin.core.getParam(activeMin.instance, 'Start Dialog', null); GBLog.info(`Auto start dialog is now being called: ${startDialog}...`); if (startDialog) { - req.body.messages[0].body = `/${startDialog}`; + req.body.messages[0].body = `${startDialog}`; await (activeMin as any).whatsAppDirectLine.received(req, res); } else { @@ -191,14 +191,15 @@ export class GBMinService { `Agora falando com ${activeMin.instance.title}...` ); let startDialog = activeMin.core.getParam(activeMin.instance, 'Start Dialog', null); + GBLog.info(`Auto start dialog is now being called: ${startDialog}...`); if (startDialog) { - GBLog.info(`Auto start dialog is now being called: ${startDialog}...`); req.body.messages[0].body = `/${startDialog}`; + req.body.messages[0].body = `${startDialog}`; await (activeMin as any).whatsAppDirectLine.received(req, res); } else { res.end(); } - } else { + } else { activeMin = GBServer.globals.minInstances.filter(p => p.instance.instanceId === user.instanceId)[0]; if (activeMin === undefined) { activeMin = GBServer.globals.minBoot;