Skip to content

Commit

Permalink
fix(core.gbapp): Fix in startup code in blank.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Apr 3, 2020
1 parent 0645c31 commit 2f3756d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"João Ferreira <joao.parana@gmail.com>",
"Jorge Ramos <jramos@pobox.com>",
"PH <ph.an@outlook.com>",
"Dário Vieira <dario.junior3@gmail.com>" ],
"Dário Vieira <dario.junior3@gmail.com>"
],
"engines": {
"node": "=10.15.2"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/core.gbapp/services/GBImporterService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ export class GBImporter {
}
const instance = await this.core.loadInstance(botId);

if (instance.botId === undefined || instance.botId === null) {
if (instance != null || instance.botId === null) {
console.log(`Null BotId after load instance with botId: ${botId}.`);
}

return await this.createOrUpdateInstanceInternal(instance, botId, localPath, settingsJson);
}

Expand Down

0 comments on commit 2f3756d

Please sign in to comment.