Skip to content
Merged
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ workflows:
- feature/top-262-projectid-non-mandatory
- TOP-2364
- PM-2097
- pm-2456

- "build-qa":
context: org-global
Expand Down
2 changes: 1 addition & 1 deletion src/common/prisma-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function convertChallengeSchemaToPrisma(currentUser, challenge) {
: Number(r.incrementalCoefficient),
aiWorkflowId: r.aiWorkflowId,
shouldOpenOpportunity: _.isNil(r.shouldOpenOpportunity)
? true
? false
: !!r.shouldOpenOpportunity,
createdAt: new Date(Date.now() + index),
};
Expand Down
3 changes: 2 additions & 1 deletion src/services/ChallengeService.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ async function setDefaultReviewers(currentUser, data) {
scorecardId: Joi.string().required(),
isMemberReview: Joi.boolean().required(),
isAIReviewer: Joi.boolean().default(false),
shouldOpenOpportunity: Joi.boolean().default(true),
shouldOpenOpportunity: Joi.boolean().default(false),
memberReviewerCount: Joi.when("isMemberReview", {
is: true,
then: Joi.number().integer().min(1).required(),
Expand Down Expand Up @@ -3227,6 +3227,7 @@ function sanitizeChallenge(challenge) {
"fixedAmount",
"baseCoefficient",
"incrementalCoefficient",
"shouldOpenOpportunity",
"type",
"aiWorkflowId",
])
Expand Down