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()