Skip to content

Commit

Permalink
Fix CosmosDB lease partition key (#902)
Browse files Browse the repository at this point in the history
  • Loading branch information
jviau committed Jul 31, 2024
1 parent 4beb436 commit b9e6b6e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public static async Task<CosmosClient> InitializeDocumentClientAsync(

Database database = await client.CreateDatabaseIfNotExistsAsync(databaseName);
await database.CreateContainerIfNotExistsAsync(collectionName, partitionKey);
await database.CreateContainerIfNotExistsAsync(LeaseCollectionName, "/_partitionKey");
await database.CreateContainerIfNotExistsAsync(LeaseCollectionName, "/id");

return client;
}
Expand Down

0 comments on commit b9e6b6e

Please sign in to comment.