Skip to content

Commit

Permalink
fix(core.gbapp): FB channel is optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Jun 17, 2021
1 parent 7f970ee commit 64ce414
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 213 deletions.
212 changes: 4 additions & 208 deletions package-lock.json

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

12 changes: 7 additions & 5 deletions packages/core.gbapp/services/GBMinService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -635,11 +635,13 @@ export class GBMinService {
min.packages = sysPackages;
min.appPackages = appPackages;

min['fbAdapter'] = new FacebookAdapter({
verify_token: process.env.FACEBOOK_VERIFY_TOKEN,
app_secret: process.env.FACEBOOK_APP_SECRET,
access_token: process.env.FACEBOOK_ACCESS_TOKEN
});
if (process.env.FACEBOOK_VERIFY_TOKEN) {
min['fbAdapter'] = new FacebookAdapter({
verify_token: process.env.FACEBOOK_VERIFY_TOKEN,
app_secret: process.env.FACEBOOK_APP_SECRET,
access_token: process.env.FACEBOOK_ACCESS_TOKEN
});
}
// TODO: min.appPackages = core.getPackagesByInstanceId(min.instance.instanceId);

// Creates a hub of services available in .gbapps.
Expand Down

0 comments on commit 64ce414

Please sign in to comment.