Skip to content

Commit

Permalink
Fixing parsing error reverse purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
ecamellini committed Oct 2, 2024
1 parent f86da4e commit 29195d5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/backend-for-frontend/src/services/purposeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,15 @@ export function purposeServiceBuilder(
logger.info(
`Creating purpose from ESErvice ${createSeed.eserviceId} and Risk Analysis ${createSeed.riskAnalysisId}`
);
const payload = {
...createSeed,
const payload: purposeApi.EServicePurposeSeed = {
eServiceId: createSeed.eserviceId,
consumerId: createSeed.consumerId,
riskAnalysisId: createSeed.riskAnalysisId,
title: createSeed.title,
description: createSeed.description,
isFreeOfCharge: createSeed.isFreeOfCharge,
freeOfChargeReason: createSeed.freeOfChargeReason,
dailyCalls: createSeed.dailyCalls,
};

const { id } = await purposeProcessClient.createPurposeFromEService(
Expand Down

0 comments on commit 29195d5

Please sign in to comment.