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] 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;