From fff1504a00746dfbd63aa3425aa1c6ee262d6bde Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Fri, 29 Sep 2023 13:24:24 -0300 Subject: [PATCH] fix(core.gbapp): #372 fix. --- packages/basic.gblib/services/GBVMService.ts | 14 +++++++------- packages/core.gbapp/services/GBMinService.ts | 5 +++-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/packages/basic.gblib/services/GBVMService.ts b/packages/basic.gblib/services/GBVMService.ts index 2a85e19b..bb8aa593 100644 --- a/packages/basic.gblib/services/GBVMService.ts +++ b/packages/basic.gblib/services/GBVMService.ts @@ -224,14 +224,14 @@ export class GBVMService extends GBService { // Unmarshalls Local variables from server VM. - let pid = this.pid; + const pid = this.pid; let id = this.id; let username = this.username; let mobile = this.mobile; let from = this.from; - let channel = this.channel; - let ENTER = this.ENTER; - let headers = this.headers; + const channel = this.channel; + const ENTER = this.ENTER; + const headers = this.headers; let data = this.data; let list = this.list; let httpUsername = this.httpUsername; @@ -239,9 +239,9 @@ export class GBVMService extends GBService { let today = this.today; let now = this.now; let page = null; - let files = []; + const files = []; let col = 1; - let index = 1 + let index = 1; // Makes objects in BASIC insensitive. @@ -249,7 +249,7 @@ export class GBVMService extends GBService { if (!listOrRow) { - return listOrRow + return listOrRow; }; const lowercase = (oldKey) => typeof oldKey === 'string' ? oldKey.toLowerCase() : oldKey; diff --git a/packages/core.gbapp/services/GBMinService.ts b/packages/core.gbapp/services/GBMinService.ts index 99092938..bc27440b 100644 --- a/packages/core.gbapp/services/GBMinService.ts +++ b/packages/core.gbapp/services/GBMinService.ts @@ -1297,11 +1297,12 @@ export class GBMinService { context.activity.text ); - const conversationReference = JSON.stringify(TurnContext.getConversationReference(context.activity)); - await sec.updateConversationReferenceById(userId, conversationReference); } } + const conversationReference = JSON.stringify(TurnContext.getConversationReference(context.activity)); + await sec.updateConversationReferenceById(userId, conversationReference); + if (GBMinService.userMobile(step)) { const startDialog = user.hearOnDialog ? user.hearOnDialog : min.core.getParam(min.instance, 'Start Dialog', null);