From 2444d22232a68ae83184c2ba47cbd7fbaf3594f5 Mon Sep 17 00:00:00 2001 From: Eric Camellini Date: Mon, 9 Sep 2024 11:40:21 +0200 Subject: [PATCH] Removing doubt comment --- packages/api-gateway/src/services/agreementService.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/api-gateway/src/services/agreementService.ts b/packages/api-gateway/src/services/agreementService.ts index 3ba750c73b..f195b2d2d4 100644 --- a/packages/api-gateway/src/services/agreementService.ts +++ b/packages/api-gateway/src/services/agreementService.ts @@ -102,10 +102,6 @@ export function agreementServiceBuilder( ): Promise => { logger.info(`Retrieving Purposes for Agreement ${agreementId}`); - // TODO Doubt: - // in this case we succeed even if the agreement is in draft state - this is what Scala does as well. - // Is it correct? In getAgreement and getAgreements we don't allow draft agreements to be returned. - // If we decide do the same here, we should remember to update the error mapper in the router. const agreement = await agreementProcessClient.getAgreementById({ headers, params: {