Skip to content

Commit 02f65d7

Browse files
author
Dushyant Bhalgami
committed
updated createReview schema for null score for queued submission
1 parent 0449751 commit 02f65d7

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy