Skip to content

Commit

Permalink
fix tr-pull-ot cli (#383)
Browse files Browse the repository at this point in the history
* fix tr-pull-ot cli

* bump package

* fix bug in syncOneTrustAssessmentToTranscend

* bump version && git push

* undo spaace

* update version

* lint
  • Loading branch information
abrantesarthur authored Jan 31, 2025
1 parent f6640a7 commit c85fb52
Show file tree
Hide file tree
Showing 3 changed files with 4 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
3 changes: 2 additions & 1 deletion src/oneTrust/helpers/syncOneTrustAssessmentToDisk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ export const syncOneTrustAssessmentToDisk = ({
assessment,
index,
total,
wrap: false, }),
wrap: false,
}),
);
}
} else if (fileFormat === OneTrustFileFormat.Csv) {
Expand Down

0 comments on commit c85fb52

Please sign in to comment.