Skip to content

Commit

Permalink
fix(kb.gbapp): Fix in subjects null pointer.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed May 1, 2019
1 parent ef3c5a1 commit e21916f
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
19 changes: 19 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -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
}
}
]
}
1 change: 0 additions & 1 deletion packages/analytics.gblib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@

'use strict';


import {
AutoIncrement,
BelongsTo,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ export class AzureDeployerService implements IGBInstallationDeployer {
} catch (error) {
reject(error);
}
}, 20000);
}, 60000);
});
}

Expand Down
3 changes: 2 additions & 1 deletion packages/kb.gbapp/services/KBService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down Expand Up @@ -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') {
Expand Down
1 change: 0 additions & 1 deletion packages/security.gblib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@

'use strict';


import {
AutoIncrement,
BelongsTo,
Expand Down

0 comments on commit e21916f

Please sign in to comment.