Skip to content

Commit 929235a

Browse files
committed
fix: add legacy id test to reviewer role check
1 parent 8afcbd6 commit 929235a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

config/default.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ module.exports = {
7070

7171
LEGACY_REVIEWER_ROLE_ID: process.env.LEGACY_REVIEWER_ROLE_ID || 4,
7272
LEGACY_REVIEW_PHASE_ID: process.env.LEGACY_REVIEW_PHASE_ID || 4,
73+
LEGACY_REVIEWER_ITERATIVE_ROLE_ID: process.env.LEGACY_REVIEWER_ITERATIVE_ROLE_ID || 21,
7374
LEGACY_REVIEWER_PAYMENT_TYPE_ID: process.env.LEGACY_PROJECT_REVIEW_PAYMENT_TYPE_ID || 3,
7475
COPILOT_PAYMENT_TYPE: process.env.COPILOT_PAYMENT_TYPE || 'copilot'
7576
}

src/common/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ async function forceV4ESFeeder (legacyId) {
198198
}
199199

200200
function isReviewerRole (roleId) {
201-
return roleId === config.REVIEWER_ROLE_ID || roleId === config.ITERATIVE_REVIEWER_ROLE_ID
201+
return roleId === config.REVIEWER_ROLE_ID || roleId === config.ITERATIVE_REVIEWER_ROLE_ID || roleId == config.LEGACY_REVIEWER_ROLE_ID || roleId == config.LEGACY_REVIEWER_ITERATIVE_ROLE_ID
202202
}
203203

204204
module.exports = {

0 commit comments

Comments
 (0)