Merge pull request #93 from arenasio/master

Ajustes de Mensagens e Documentação
This commit is contained in:
Rodrigo Rodriguez 2019-05-12 09:49:26 -03:00 committed by GitHub
commit 261b73bbb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 32 additions and 9 deletions

19
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,19 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "typescript",
"tsconfig": "tsconfig.json",
"option": "watch",
"problemMatcher": [
"$tsc-watch"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}

View file

@ -36,7 +36,6 @@
'use strict';
import {
AutoIncrement,
BelongsTo,

View file

@ -486,7 +486,7 @@ export class AzureDeployerService implements IGBInstallationDeployer {
} catch (error) {
reject(error);
}
}, 20000);
}, 60000);
});
}

View file

@ -141,7 +141,7 @@ export class GBConversationalService implements IGBConversationalService {
GBLog.info(`NLP called: ${intent} ${firstEntity}`);
try {
await step.replaceDialog(` /${intent}`, nlp.entities);
await step.replaceDialog(`/${intent}`, nlp.entities);
return Promise.resolve(true);
} catch (error) {

View file

@ -5719,7 +5719,8 @@
},
"ansi-regex": {
"version": "2.1.1",
"bundled": true
"bundled": true,
"optional": true
},
"aproba": {
"version": "1.2.0",
@ -6084,7 +6085,8 @@
},
"safe-buffer": {
"version": "5.1.1",
"bundled": true
"bundled": true,
"optional": true
},
"safer-buffer": {
"version": "2.1.2",
@ -6132,6 +6134,7 @@
"strip-ansi": {
"version": "3.0.1",
"bundled": true,
"optional": true,
"requires": {
"ansi-regex": "^2.0.0"
}
@ -6170,11 +6173,13 @@
},
"wrappy": {
"version": "1.0.2",
"bundled": true
"bundled": true,
"optional": true
},
"yallist": {
"version": "3.0.2",
"bundled": true
"bundled": true,
"optional": true
}
}
},

View file

@ -86,6 +86,7 @@ export class KBService {
public static getSubjectItemsSeparatedBySpaces(subjects: GuaribasSubject[]) {
const out = [];
if (subjects === undefined) { return ''; }
subjects.forEach(subject => {
out.push(subject.internalId);
});
@ -168,7 +169,7 @@ export class KBService {
query = `${query} ${text}`;
}
}
query = `${query}&$filter=instanceId eq ${instance.instanceId}`;
// TODO: query = `${query}&$filter=instanceId eq ${instance.instanceId}`;
// tslint:disable:no-unsafe-any
if (instance.searchKey !== null && GBConfigService.get('STORAGE_DIALECT') === 'mssql') {

View file

@ -36,7 +36,6 @@
'use strict';
import {
AutoIncrement,
BelongsTo,