Skip to content

Commit e480323

Browse files
committed
fix updating RB.sendWeeklySurvey
1 parent 80a2af9 commit e480323

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/ResourceBookingService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ partiallyUpdateResourceBooking.schema = Joi.object().keys({
418418
memberRate: Joi.number().allow(null),
419419
customerRate: Joi.number().allow(null),
420420
rateType: Joi.rateType(),
421-
sendWeeklySurvey: Joi.boolean().allow(null),
421+
sendWeeklySurvey: Joi.boolean(),
422422
billingAccountId: Joi.number().allow(null)
423423
}).required()
424424
}).required()
@@ -458,7 +458,7 @@ fullyUpdateResourceBooking.schema = Joi.object().keys({
458458
customerRate: Joi.number().allow(null).default(null),
459459
rateType: Joi.rateType().required(),
460460
status: Joi.resourceBookingStatus().required(),
461-
sendWeeklySurvey: Joi.boolean().allow(null),
461+
sendWeeklySurvey: Joi.boolean().default(true),
462462
billingAccountId: Joi.number().allow(null).default(null)
463463
}).required()
464464
}).required()

0 commit comments

Comments
 (0)