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 - - + +