From 789cd697f7d2a65aad92360313c6ce9ad71ff95c Mon Sep 17 00:00:00 2001 From: Chris Tremblay <62187826+chtrembl@users.noreply.github.com> Date: Fri, 19 Jul 2024 11:09:21 -0400 Subject: [PATCH 1/2] Update CosmosDB.java --- .../java/com/chtrembl/petstoreassistant/service/CosmosDB.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/petstore/petstoreassistant/src/main/java/com/chtrembl/petstoreassistant/service/CosmosDB.java b/petstore/petstoreassistant/src/main/java/com/chtrembl/petstoreassistant/service/CosmosDB.java index ca106d98..d6646e37 100644 --- a/petstore/petstoreassistant/src/main/java/com/chtrembl/petstoreassistant/service/CosmosDB.java +++ b/petstore/petstoreassistant/src/main/java/com/chtrembl/petstoreassistant/service/CosmosDB.java @@ -30,7 +30,7 @@ public class CosmosDB implements ICosmosDB { private static final String DATABASE_ID = "E-Commerce"; - private static final String PRODUCTS_CONTAINER_ID = "ProductsV2"; + private static final String PRODUCTS_CONTAINER_ID = "Products"; private static final String PROMPTS_CONTAINER_ID = "Prompts"; private CosmosClient client = null; From 51cf6038c6ed4d712d4b609b6c6e937b2da885eb Mon Sep 17 00:00:00 2001 From: Chris Tremblay <62187826+chtrembl@users.noreply.github.com> Date: Fri, 19 Jul 2024 14:27:45 -0400 Subject: [PATCH 2/2] Update CosmosDB.java --- .../java/com/chtrembl/petstoreassistant/service/CosmosDB.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/petstore/petstoreassistant/src/main/java/com/chtrembl/petstoreassistant/service/CosmosDB.java b/petstore/petstoreassistant/src/main/java/com/chtrembl/petstoreassistant/service/CosmosDB.java index d6646e37..bb72b0f2 100644 --- a/petstore/petstoreassistant/src/main/java/com/chtrembl/petstoreassistant/service/CosmosDB.java +++ b/petstore/petstoreassistant/src/main/java/com/chtrembl/petstoreassistant/service/CosmosDB.java @@ -23,7 +23,8 @@ public class CosmosDB implements ICosmosDB { private static final Logger LOGGER = LoggerFactory.getLogger(CosmosDB.class); - private static final String ENDPOINT = "https://azurepetstoreweb.documents.azure.com:443/"; + //needs to be injected not hardcoded + private static final String ENDPOINT = "https://azurepetstoreme.documents.azure.com:443/"; @Value("${cosmos.key}") private String cosmosKey;