Skip to content

Commit 0d6ca0c

Browse files
david-ccrbunel35
authored andcommitted
feat: #WB-35, show library in app access graph
1 parent d74398b commit 0d6ca0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/resources/public/ts/indicators/bar/mostUsedAppsIndicator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class MostUsedAppsIndicator extends AbstractBarIndicator {
3232

3333
async getApiData(entity: Entity): Promise<Array<StatsResponse>> {
3434
let apiData: Array<StatsResponse> = await cacheService.getData(this.api, 'month', entity.level, entity.id, false);
35-
apiData = apiData.filter(x => x['type'] === 'ACCESS');
35+
apiData = apiData.filter(data => data['type'] === 'ACCESS' || (data['type'] === 'CONNECTOR' && data['module'] === 'library'));
3636
return apiData;
3737
}
3838

src/main/resources/public/ts/indicators/bar/mostUsedConnectorsIndicator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class MostUsedConnectorsIndicator extends AbstractBarIndicator {
3131

3232
async getApiData(entity: Entity): Promise<Array<StatsResponse>> {
3333
let apiData: Array<StatsResponse> = await cacheService.getData(this.api, 'month', entity.level, entity.id, false);
34-
apiData = apiData.filter(x => x['type'] === 'CONNECTOR');
34+
apiData = apiData.filter(data => data['type'] === 'CONNECTOR' && data['module'] !== 'library');
3535
return apiData;
3636
}
3737

0 commit comments

Comments
 (0)