From 678245310928ead71fa8ed7835bcf04c996d18b3 Mon Sep 17 00:00:00 2001 From: Drew Davis Date: Mon, 16 Oct 2023 13:58:40 -0400 Subject: [PATCH] Update to Azure Cosmos DB extension 4.x --- backend/api/GetResumeCounter.cs | 4 ++-- backend/api/api.csproj | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/api/GetResumeCounter.cs b/backend/api/GetResumeCounter.cs index 53cd76e..05dfef4 100644 --- a/backend/api/GetResumeCounter.cs +++ b/backend/api/GetResumeCounter.cs @@ -17,8 +17,8 @@ public static class GetResumeCounter [FunctionName("GetResumeCounter")] public static HttpResponseMessage Run( [HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)] HttpRequest req, - [CosmosDB(databaseName:"AzureResume", collectionName: "Counter", ConnectionStringSetting = "AzureResumeConnectionString", Id = "1", PartitionKey = "1")] Counter counter, - [CosmosDB(databaseName:"AzureResume", collectionName: "Counter", ConnectionStringSetting = "AzureResumeConnectionString", Id = "1", PartitionKey = "1")] out Counter updatedCounter, + [CosmosDB(databaseName:"AzureResume", ContainerName: "Counter", Connection = "AzureResumeConnectionString", Id = "1", PartitionKey = "1")] Counter counter, + [CosmosDB(databaseName:"AzureResume", ContainerName: "Counter", Connection = "AzureResumeConnectionString", Id = "1", PartitionKey = "1")] out Counter updatedCounter, ILogger log) { // Here is where the counter gets updated diff --git a/backend/api/api.csproj b/backend/api/api.csproj index d249a04..0ccabe4 100644 --- a/backend/api/api.csproj +++ b/backend/api/api.csproj @@ -1,11 +1,11 @@ - net6.0 + net7.0 v4 - - + +