Skip to content

Commit 43e1d43

Browse files
committed
fix: include shouldOpenOpportunity as valid field
1 parent d673dfb commit 43e1d43

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/common/prisma-helper.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ function convertChallengePhaseSchema(challenge, result, auditFields) {
6767
* @returns prisma model data to create/update challenge
6868
*/
6969
function convertChallengeSchemaToPrisma(currentUser, challenge) {
70-
console.log(challenge, 'convertChallengeSchemaToPrisma challenge')
7170
// used id used in createdBy and updatedBy
7271
const userId = _.toString(currentUser.userId);
7372
const auditFields = {

src/services/ChallengeService.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2516,7 +2516,7 @@ async function updateChallenge(currentUser, challengeId, data, options = {}) {
25162516
if (_.isNil(data.phases)) {
25172517
phasesForUpdate = null;
25182518
}
2519-
console.log(JSON.stringify(data), 'data from request before')
2519+
25202520
// Normalize and validate reviewers' phase references before converting to Prisma input
25212521
if (!_.isNil(data.reviewers)) {
25222522
try {
@@ -2562,7 +2562,6 @@ async function updateChallenge(currentUser, challengeId, data, options = {}) {
25622562
}
25632563
}
25642564

2565-
console.log(JSON.stringify(data), 'data from request after 2')
25662565
if (!_.isNil(data.reviewers)) {
25672566
await ensureScorecardChangeDoesNotConflict({
25682567
challengeId,
@@ -2571,7 +2570,7 @@ async function updateChallenge(currentUser, challengeId, data, options = {}) {
25712570
originalChallengePhases,
25722571
});
25732572
}
2574-
console.log(JSON.stringify(data), 'data from request after 3')
2573+
25752574
// convert data to prisma models
25762575
const updateData = prismaHelper.convertChallengeSchemaToPrisma(
25772576
currentUser,

0 commit comments

Comments
 (0)