From 06e463a88cbd6b5c17a1b4db40306d5a36cc67ca Mon Sep 17 00:00:00 2001 From: Andre Turner Date: Wed, 20 Nov 2024 12:57:29 -0600 Subject: [PATCH] modified resolver to return specific result type --- ...action-result-language-engagement-connection.resolver.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/pnp/extraction-result/pnp-extraction-result-language-engagement-connection.resolver.ts b/src/components/pnp/extraction-result/pnp-extraction-result-language-engagement-connection.resolver.ts index 6c3b6b2d0d..87d0472764 100644 --- a/src/components/pnp/extraction-result/pnp-extraction-result-language-engagement-connection.resolver.ts +++ b/src/components/pnp/extraction-result/pnp-extraction-result-language-engagement-connection.resolver.ts @@ -1,19 +1,19 @@ import { Parent, ResolveField, Resolver } from '@nestjs/graphql'; import { Loader, LoaderOf } from '@seedcompany/data-loader'; import { LanguageEngagement } from '../../engagement/dto'; -import { PnpExtractionResult } from './extraction-result.dto'; +import { PnpPlanningExtractionResult } from './extraction-result.dto'; import { PnpExtractionResultLoader } from './pnp-extraction-result.loader'; @Resolver(LanguageEngagement) export class PnpExtractionResultLanguageEngagementConnectionResolver { - @ResolveField(() => PnpExtractionResult, { + @ResolveField(() => PnpPlanningExtractionResult, { nullable: true, }) async pnpExtractionResult( @Parent() engagement: LanguageEngagement, @Loader(() => PnpExtractionResultLoader) loader: LoaderOf, - ): Promise { + ): Promise { const fileId = engagement.pnp.value; if (!fileId) { return null;