Skip to content

Commit 2bbe85c

Browse files
author
Dushyant Bhalgami
authored
Merge pull request #151 from topcoder-platform/feature/crate_review_queued_status
updated createReview schema for null score for queued submission
2 parents 5e0ade5 + 02f65d7 commit 2bbe85c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/ReviewService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ createReview.schema = {
180180
entity: joi
181181
.object()
182182
.keys({
183-
score: joi.score().when('$status', {
184-
is: joi.reviewStatus().valid('completed'),
183+
score: joi.when('status', {
184+
is: joi.string().valid('completed'),
185185
then: joi.required(),
186186
otherwise: joi.optional()
187187
}),

0 commit comments

Comments
 (0)