Skip to content

Commit

Permalink
fix(core.gbapp): Min Boot bot now is defined again.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Jun 17, 2021
1 parent 0811136 commit f65b3ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/core.gbapp/services/GBMinService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,6 @@ export class GBMinService {
new Date(new Date().setFullYear(new Date().getFullYear() + 10))
);



// The minimal bot is built here.

const min = new GBMinInstance();
Expand All @@ -635,6 +633,10 @@ export class GBMinService {
min.packages = sysPackages;
min.appPackages = appPackages;

if (GBServer.globals.minBoot === undefined) {
GBServer.globals.minBoot = min;
}

if (process.env.FACEBOOK_VERIFY_TOKEN) {
min['fbAdapter'] = new FacebookAdapter({
verify_token: process.env.FACEBOOK_VERIFY_TOKEN,
Expand Down

0 comments on commit f65b3ea

Please sign in to comment.