diff --git a/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java b/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java index 01adc5565322..b50a0225f427 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java +++ b/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java @@ -1185,7 +1185,7 @@ public Set getTopicSubscriptionsByApiUUID(String applicationId, St } subscription.setLastDeliveryState(resultSet.getInt("DELIVERY_STATE")); subscription.setTopic(resultSet.getString("HUB_TOPIC")); - subscription.setAppID(resultSet.getString("APPLICATION_ID")); + subscription.setAppID(applicationId); subscriptionSet.add(subscription); } return subscriptionSet;