From 508fe9fc312512b71503bb8c34c430dfa2361505 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Thu, 26 Nov 2020 13:48:21 -0300 Subject: [PATCH] fix(core.gbapp): SEND SMS fixed. --- packages/core.gbapp/services/GBCoreService.ts | 2 +- packages/core.gbapp/services/GBMinService.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core.gbapp/services/GBCoreService.ts b/packages/core.gbapp/services/GBCoreService.ts index 01d2ca801..8866e940e 100644 --- a/packages/core.gbapp/services/GBCoreService.ts +++ b/packages/core.gbapp/services/GBCoreService.ts @@ -590,7 +590,7 @@ STORAGE_SYNC=true return new Number(value ? defaultValue : defaultValue ? defaultValue : 0); } - if (instance['dataValues']) { + if (instance['dataValues'] && !value) { value = instance['dataValues'][name]; if (value === null) { const minBoot = GBServer.globals.minBoot as any; diff --git a/packages/core.gbapp/services/GBMinService.ts b/packages/core.gbapp/services/GBMinService.ts index ec4e14aa4..5130673e4 100644 --- a/packages/core.gbapp/services/GBMinService.ts +++ b/packages/core.gbapp/services/GBMinService.ts @@ -190,6 +190,7 @@ export class GBMinService { id, `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) { @@ -199,7 +200,7 @@ export class GBMinService { else { res.end(); } - } else { + } else { activeMin = GBServer.globals.minInstances.filter(p => p.instance.instanceId === user.instanceId)[0]; if (activeMin === undefined) { activeMin = GBServer.globals.minBoot;