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 4b7b20a2fcf0..bba0ebab434f 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 @@ -15381,7 +15381,7 @@ public void addAPIProduct(APIProduct apiProduct, String organization) throws API prepStmtAddAPIProduct.setString(14, apiProduct.getVersionTimestamp()); prepStmtAddAPIProduct.setString(15, APIUtil.setSubscriptionValidationStatusBeforeInsert(apiProduct.getAvailableTiers())); - prepStmtAddAPIProduct.setInt(15, apiProduct.isEgress()); + prepStmtAddAPIProduct.setInt(16, apiProduct.isEgress()); prepStmtAddAPIProduct.execute(); rs = prepStmtAddAPIProduct.getGeneratedKeys();