Skip to content

Commit

Permalink
Removing doubt comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ecamellini committed Sep 9, 2024
1 parent 4ad8ba4 commit 7ceb6f8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/api-gateway/src/services/agreementService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,6 @@ export function agreementServiceBuilder(
): Promise<apiGatewayApi.Purposes> => {
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: {
Expand Down

0 comments on commit 7ceb6f8

Please sign in to comment.