From a72960b4e514472aef4f742cbac018a119220e4c Mon Sep 17 00:00:00 2001 From: Avishka-Shamendra Date: Tue, 24 Sep 2024 16:19:34 +0530 Subject: [PATCH] Fix api create insert prep statement --- .../main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();