Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions prisma/challenge.schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -619,15 +619,15 @@ model DefaultChallengeReviewer {
typeId String
trackId String
// Reviewer configuration (mirrors ChallengeReviewer)
scorecardId String
scorecardId String?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ correctness]
Changing scorecardId from String to String? makes it nullable. Ensure that the application logic correctly handles cases where scorecardId is null, as this could lead to unexpected behavior if not properly managed.

isMemberReview Boolean
memberReviewerCount Int?
phaseName String
fixedAmount Float? @default(0)
baseCoefficient Float?
incrementalCoefficient Float?
opportunityType ReviewOpportunityTypeEnum?
isAIReviewer Boolean
aiWorkflowId String?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ correctness]
The addition of aiWorkflowId as String? introduces a nullable field. Verify that any logic dependent on aiWorkflowId being non-null is updated to handle null values appropriately to avoid potential null reference errors.

// Default for whether to open a public review opportunity for this reviewer when a challenge is created
shouldOpenOpportunity Boolean @default(true)

Expand Down