fix(core.gbapp): Min Boot bot now is defined again.

This commit is contained in:
Rodrigo Rodriguez 2021-06-17 14:28:25 -03:00
parent 081113632a
commit f65b3ea9c4

View file

@ -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();
@ -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,