Skip to content

Commit 969cc58

Browse files
feat: reduce summary sent to only id and score (#448)
Co-authored-by: Nasiba Carrasco Lanchas <[email protected]>
1 parent fa03122 commit 969cc58

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,13 @@ const processResults = ({ data, errors }) => {
219219
return {
220220
summary: data
221221
.map(({ path, url, summary, shortSummary, report }) => {
222-
const obj = { summary, report };
222+
const obj = {
223+
summary: summary.reduce((acc, item) => {
224+
acc[item.id] = item.score * 100;
225+
return acc;
226+
}, {}),
227+
report,
228+
};
223229

224230
if (path) {
225231
obj.path = path;

0 commit comments

Comments
 (0)