From 6a577cfe9e2e334d3fbf458cf84642b94cb96164 Mon Sep 17 00:00:00 2001 From: gonzalojaubert Date: Mon, 6 Nov 2023 10:24:27 +0000 Subject: [PATCH] Fix health-adapter.ts --- .../framework-provider-azure/src/library/health-adapter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/framework-provider-azure/src/library/health-adapter.ts b/packages/framework-provider-azure/src/library/health-adapter.ts index 7d3af92b6..c7e22734e 100644 --- a/packages/framework-provider-azure/src/library/health-adapter.ts +++ b/packages/framework-provider-azure/src/library/health-adapter.ts @@ -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' @@ -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({