Skip to content

Commit

Permalink
fix(all): CI fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Jul 11, 2020
1 parent d87a5b5 commit 448786a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"botbuilder-ai": "4.7.0",
"botbuilder-dialogs": "4.7.0",
"botframework-connector": "4.7.0",
"botlib": "1.5.8",
"botlib": "1.5.9",
"cli-spinner": "0.2.10",
"dotenv-extended": "2.7.1",
"exceljs": "3.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/core.gbapp/services/GBCoreService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ STORAGE_SYNC=true
* @param name Name of param to get from instance.
* @param defaultValue Value returned when no param is defined in Config.xlsx.
*/
public static getParam<T>(instance, name: string, defaultValue?: T): any {
public getParam<T>(instance:IGBInstance, name: string, defaultValue?: T): any {
let value = null;
if (instance.params) {
const params = JSON.parse(instance.params);
Expand Down
7 changes: 4 additions & 3 deletions packages/core.gbapp/services/GBMinService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ import { SecService } from '../../security.gblib/services/SecService';
import { AnalyticsService } from '../../analytics.gblib/services/AnalyticsService';
import { WhatsappDirectLine } from '../../whatsapp.gblib/services/WhatsappDirectLine';
import fs = require('fs');
import { GBConversationalService } from './GBConversationalService';
import { GuaribasConversationMessage } from 'packages/analytics.gblib/models';
import { GuaribasConversationMessage } from '../../analytics.gblib/models';
import { GBCoreService } from './GBCoreService';

/**
* Minimal service layer for a bot.
Expand Down Expand Up @@ -706,7 +706,8 @@ export class GBMinService {


let locale = 'pt';
if (process.env.TRANSLATOR_DISABLED !== "true" || min.getParam('Enable Worldwide Translator') ) {
if (process.env.TRANSLATOR_DISABLED !== "true" ||
min.core.getParam<boolean> (min.instance,'Enable Worldwide Translator') ) {
const minBoot = GBServer.globals.minBoot as any; // TODO: Switch keys automatically to master/per bot.
locale = await AzureText.getLocale(minBoot.instance.textAnalyticsKey ?
minBoot.instance.textAnalyticsKey : minBoot.instance.textAnalyticsKey,
Expand Down

0 comments on commit 448786a

Please sign in to comment.