fix(basic.gblib): Autostart bug, more logging.
This commit is contained in:
parent
3d42ab91bb
commit
3d90bd872e
2 changed files with 2 additions and 2 deletions
|
@ -752,7 +752,7 @@ export class GBVMService extends GBService {
|
||||||
|
|
||||||
const mainMethod = text.toLowerCase();
|
const mainMethod = text.toLowerCase();
|
||||||
if (!sandbox[mainMethod]) {
|
if (!sandbox[mainMethod]) {
|
||||||
GBLog.error(`BASIC: Associated '${mainMethod}' dialog not found. Verify if .gbdialog is correctly published.`);
|
GBLog.error(`BASIC: Associated '${mainMethod}' dialog not found for: ${min.instance.botId}. Verify if .gbdialog is correctly published.`);
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -342,7 +342,7 @@ export class GBMinService {
|
||||||
await sec.updateUserInstance(id, instance.instanceId);
|
await sec.updateUserInstance(id, instance.instanceId);
|
||||||
await (activeMin as any).whatsAppDirectLine.resetConversationId(id);
|
await (activeMin as any).whatsAppDirectLine.resetConversationId(id);
|
||||||
const startDialog = activeMin.core.getParam(activeMin.instance, 'Start Dialog', null);
|
const startDialog = activeMin.core.getParam(activeMin.instance, 'Start Dialog', null);
|
||||||
GBLog.info(`Auto start (2) dialog is now being called: ${startDialog} for ${activeMin.instance.instanceId}...`);
|
GBLog.info(`Auto start (2) dialog is now being called: ${startDialog} for ${activeMin.instance.botId}...`);
|
||||||
|
|
||||||
if (startDialog) {
|
if (startDialog) {
|
||||||
req.body.messages[0].body = `/call ${startDialog}`;
|
req.body.messages[0].body = `/call ${startDialog}`;
|
||||||
|
|
Loading…
Add table
Reference in a new issue