Skip to content

Commit

Permalink
fix bug in syncOneTrustAssessmentToTranscend
Browse files Browse the repository at this point in the history
  • Loading branch information
abrantesarthur committed Jan 30, 2025
1 parent de7dedf commit e44590e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/oneTrust/helpers/enrichOneTrustAssessment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const enrichOneTrustAssessment = ({
return {
...risk,
...details,
level: risk.level,
impactLevel: risk.impactLevel ?? 0,
};
});
Expand Down
2 changes: 1 addition & 1 deletion src/oneTrust/helpers/oneTrustAssessmentToJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const oneTrustAssessmentToJson = ({
let jsonEntry = '';
// start with an opening bracket
if (index === 0 || wrap) {
jsonEntry = '[\n';
jsonEntry = '[';
}

const stringifiedAssessment = JSON.stringify(assessment);
Expand Down
1 change: 0 additions & 1 deletion src/oneTrust/helpers/syncOneTrustAssessmentToTranscend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export const syncOneTrustAssessmentToTranscend = async ({
index,
total,
});

// transform the csv record into a valid input to the mutation
const input: ImportOnetrustAssessmentsInput = {
json,
Expand Down

0 comments on commit e44590e

Please sign in to comment.