fix(all): CI fix.
This commit is contained in:
parent
d87a5b5219
commit
448786ab37
4 changed files with 9 additions and 8 deletions
6
package-lock.json
generated
6
package-lock.json
generated
|
@ -3840,9 +3840,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"botlib": {
|
"botlib": {
|
||||||
"version": "1.5.8",
|
"version": "1.5.9",
|
||||||
"resolved": "https://registry.npmjs.org/botlib/-/botlib-1.5.8.tgz",
|
"resolved": "https://registry.npmjs.org/botlib/-/botlib-1.5.9.tgz",
|
||||||
"integrity": "sha512-mEwXDE7zFLSmYKNvLPJKgU4dxCOtwJbi6VWvjc6AFgl6/P3Ab7qMl477JNDtxUfqzN9YQCdvFs4fYRgn3QRtYA==",
|
"integrity": "sha512-pvUdntYLTMtiLnmP+skZDf7Cxf5D0NIiOzdsDwx4QIXjBmP0BwuaLWD3X4JaPcRrzqrJE0PAy+wZuoxupSMZLA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"async": "3.1.0",
|
"async": "3.1.0",
|
||||||
"botbuilder": "4.7.0",
|
"botbuilder": "4.7.0",
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
"botbuilder-ai": "4.7.0",
|
"botbuilder-ai": "4.7.0",
|
||||||
"botbuilder-dialogs": "4.7.0",
|
"botbuilder-dialogs": "4.7.0",
|
||||||
"botframework-connector": "4.7.0",
|
"botframework-connector": "4.7.0",
|
||||||
"botlib": "1.5.8",
|
"botlib": "1.5.9",
|
||||||
"cli-spinner": "0.2.10",
|
"cli-spinner": "0.2.10",
|
||||||
"dotenv-extended": "2.7.1",
|
"dotenv-extended": "2.7.1",
|
||||||
"exceljs": "3.5.0",
|
"exceljs": "3.5.0",
|
||||||
|
|
|
@ -593,7 +593,7 @@ STORAGE_SYNC=true
|
||||||
* @param name Name of param to get from instance.
|
* @param name Name of param to get from instance.
|
||||||
* @param defaultValue Value returned when no param is defined in Config.xlsx.
|
* @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;
|
let value = null;
|
||||||
if (instance.params) {
|
if (instance.params) {
|
||||||
const params = JSON.parse(instance.params);
|
const params = JSON.parse(instance.params);
|
||||||
|
|
|
@ -68,8 +68,8 @@ import { SecService } from '../../security.gblib/services/SecService';
|
||||||
import { AnalyticsService } from '../../analytics.gblib/services/AnalyticsService';
|
import { AnalyticsService } from '../../analytics.gblib/services/AnalyticsService';
|
||||||
import { WhatsappDirectLine } from '../../whatsapp.gblib/services/WhatsappDirectLine';
|
import { WhatsappDirectLine } from '../../whatsapp.gblib/services/WhatsappDirectLine';
|
||||||
import fs = require('fs');
|
import fs = require('fs');
|
||||||
import { GBConversationalService } from './GBConversationalService';
|
import { GuaribasConversationMessage } from '../../analytics.gblib/models';
|
||||||
import { GuaribasConversationMessage } from 'packages/analytics.gblib/models';
|
import { GBCoreService } from './GBCoreService';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Minimal service layer for a bot.
|
* Minimal service layer for a bot.
|
||||||
|
@ -706,7 +706,8 @@ export class GBMinService {
|
||||||
|
|
||||||
|
|
||||||
let locale = 'pt';
|
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.
|
const minBoot = GBServer.globals.minBoot as any; // TODO: Switch keys automatically to master/per bot.
|
||||||
locale = await AzureText.getLocale(minBoot.instance.textAnalyticsKey ?
|
locale = await AzureText.getLocale(minBoot.instance.textAnalyticsKey ?
|
||||||
minBoot.instance.textAnalyticsKey : minBoot.instance.textAnalyticsKey,
|
minBoot.instance.textAnalyticsKey : minBoot.instance.textAnalyticsKey,
|
||||||
|
|
Loading…
Add table
Reference in a new issue