Skip to content

Commit 56c428f

Browse files
committed
fix: provisional score
1 parent a57d2c5 commit 56c428f

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

config/production.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"AV_SCAN_SCORER_REVIEW_TYPE_ID": "55bbb17d-aac2-45a6-89c3-a8d102863d05",
3-
"AV_SCAN_TYPE_IDS": ["1297f2db-687d-4ac8-bf9c-78b6df1b1281", "2929bc33-8f58-4011-8e49-9e3a10499e97", "55bbb17d-aac2-45a6-89c3-a8d102863d05"],
43
"PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID": "df51ca7d-fb0a-4147-9569-992fcf5aae48"
54
}

dist/dev/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/prod/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/submission.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/* eslint-disable no-param-reassign */
66
import _ from 'lodash';
77

8-
const { AV_SCAN_TYPE_IDS, PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID } = CONFIG;
8+
const { AV_SCAN_SCORER_REVIEW_TYPE_ID, PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID } = CONFIG;
99

1010
function removeDecimal(num) {
1111
const re = new RegExp('^-?\\d+');
@@ -121,7 +121,7 @@ export function processMMSubmissions(submissions) {
121121
if (!data[memberId]) {
122122
data[memberId] = [];
123123
}
124-
const validReviews = _.reject(submission.review, review => AV_SCAN_TYPE_IDS.includes(review.typeId));
124+
const validReviews = _.reject(submission.review, ['typeId', AV_SCAN_SCORER_REVIEW_TYPE_ID]);
125125
validReviews.sort((a, b) => {
126126
const dateA = new Date(a.created);
127127
const dateB = new Date(b.created);

0 commit comments

Comments
 (0)