diff --git a/core/src/main/java/io/aiven/klaw/controller/AnalyticsController.java b/core/src/main/java/io/aiven/klaw/controller/AnalyticsController.java index f4e046b21b..2bca397f34 100644 --- a/core/src/main/java/io/aiven/klaw/controller/AnalyticsController.java +++ b/core/src/main/java/io/aiven/klaw/controller/AnalyticsController.java @@ -50,6 +50,7 @@ public ResponseEntity getActivityLogForTeamOverview( throw new KlawBadRequestException( "Only values between 1 and 90 are accepted for numberOfDays"); } + return new ResponseEntity<>( chartsProcessor.getActivityLogForTeamOverview(activityLogForTeam, numberOfDays), HttpStatus.OK); diff --git a/core/src/main/java/io/aiven/klaw/helpers/db/rdbms/SelectDataJdbc.java b/core/src/main/java/io/aiven/klaw/helpers/db/rdbms/SelectDataJdbc.java index 6e61b56f01..9907962a54 100644 --- a/core/src/main/java/io/aiven/klaw/helpers/db/rdbms/SelectDataJdbc.java +++ b/core/src/main/java/io/aiven/klaw/helpers/db/rdbms/SelectDataJdbc.java @@ -1264,7 +1264,8 @@ public List> selectAclsCo for (Object[] topic : topics) { totalAclsCount.add( - CommonUtilsService.ChartsOverviewItem.of((String) topic[0], (Integer) topic[1])); + CommonUtilsService.ChartsOverviewItem.of( + (String) topic[0], ((Long) topic[1]).intValue())); } } catch (Exception e) { log.error("Error selectAclsCountByEnv", e);