Skip to content

Commit

Permalink
fix(core.gbapp): SEND SMS fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Nov 26, 2020
1 parent 94d9002 commit 508fe9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core.gbapp/services/GBCoreService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion packages/core.gbapp/services/GBMinService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
Expand Down

0 comments on commit 508fe9f

Please sign in to comment.