From 84a8c9c692c9b317b2eb53898e88a1456d7099cb Mon Sep 17 00:00:00 2001 From: Pascal Euhus Date: Fri, 31 May 2024 13:11:59 +0200 Subject: [PATCH] upsert provider --- .../java/core/backend/azure/cosmosdb/CosmosDbRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/core/backend/azure/cosmosdb/CosmosDbRepository.java b/src/main/java/core/backend/azure/cosmosdb/CosmosDbRepository.java index f411c981..8c08d7b4 100644 --- a/src/main/java/core/backend/azure/cosmosdb/CosmosDbRepository.java +++ b/src/main/java/core/backend/azure/cosmosdb/CosmosDbRepository.java @@ -192,7 +192,7 @@ public void ingestProviderData(Provider provider) { } catch (NotFoundException cosmosException) { providerToIngest = provider; } - providerContainer.createItem( + providerContainer.upsertItem( providerToIngest, new PartitionKey(provider.getId()), new CosmosItemRequestOptions()