Skip to content

Commit

Permalink
Improving comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ecamellini committed Jul 23, 2024
1 parent 47a3bc9 commit 7a7f18e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/api-gateway/src/services/agreementService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ export function agreementServiceBuilder(
): Promise<apiGatewayApi.Attributes> => {
logger.info(`Retrieving Attributes for Agreement ${agreementId}`);

// TODO Doubt: is it correct that in this case we succeed even if the agreement is in draft state?
// In the two previous methods, we throw an error if the agreement is in draft state.
// If we do the same here, we should remember to update the error mapper in the router.
// 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 7a7f18e

Please sign in to comment.