diff --git a/core/src/main/java/io/aiven/klaw/service/ApprovalService.java b/core/src/main/java/io/aiven/klaw/service/ApprovalService.java index d4b4769d6b..9d9e61873b 100644 --- a/core/src/main/java/io/aiven/klaw/service/ApprovalService.java +++ b/core/src/main/java/io/aiven/klaw/service/ApprovalService.java @@ -77,7 +77,7 @@ public List getApprovalsForRequest( RequestEntityType entityType, RequestOperationType operationType, String envName, - Integer resourceNameId, + Integer resourceOwnerTeamId, Integer aclOwnerId, int tenantId) throws KlawException { @@ -85,7 +85,8 @@ public List getApprovalsForRequest( for (Approval app : approvals) { if (app.getApprovalType() == ApprovalType.TOPIC_TEAM_OWNER || app.getApprovalType() == ApprovalType.CONNECTOR_TEAM_OWNER) { - app.setRequiredApprover(manageDatabase.getTeamNameFromTeamId(tenantId, resourceNameId)); + app.setRequiredApprover( + manageDatabase.getTeamNameFromTeamId(tenantId, resourceOwnerTeamId)); } else if (app.getApprovalType() == ApprovalType.ACL_TEAM_OWNER) { app.setRequiredApprover(manageDatabase.getTeamNameFromTeamId(tenantId, aclOwnerId)); }