Skip to content

Commit

Permalink
Fix health-adapter.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalojaubert committed Nov 6, 2023
1 parent 0571627 commit 6a577cf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BoosterConfig, HealthEnvelope } from '@boostercloud/framework-types'
import { Container, CosmosClient, PartitionKey, PartitionKeyDefinition } from "@azure/cosmos";
import { Container, CosmosClient, PartitionKeyDefinition } from '@azure/cosmos'
import { environmentVarNames } from '../constants'
import { Context } from '@azure/functions'
import { request } from '@boostercloud/framework-common-helpers'
Expand Down Expand Up @@ -107,7 +107,7 @@ export async function databaseReadModelsHealthDetails(cosmosDb: CosmosClient, co
const name = readModel.class.name
const containerName = config.resourceNames.forReadModel(name)
const container = getContainer(cosmosDb, config, containerName)
const partitionKeyDefinition: PartitionKey | undefined = await partitionKeys(container)
const partitionKeyDefinition: PartitionKeyDefinition | undefined = await partitionKeys(container)
const url: string = container.url
const count: number = await countAll(container)
result.push({
Expand Down

0 comments on commit 6a577cf

Please sign in to comment.