Skip to content

Commit 02204c6

Browse files
committed
fix: allow multiple payment status in query payment
1 parent bf00b25 commit 02204c6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/services/WorkPeriodPaymentService.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,10 @@ createQueryWorkPeriodPayments.schema = Joi.object().keys({
457457
Joi.string(),
458458
Joi.array().items(Joi.number().integer())
459459
),
460-
'workPeriods.paymentStatus': Joi.paymentStatus(),
460+
'workPeriods.paymentStatus': Joi.alternatives(
461+
Joi.string(),
462+
Joi.array().items(Joi.paymentStatus())
463+
),
461464
'workPeriods.startDate': Joi.date().format('YYYY-MM-DD'),
462465
'workPeriods.endDate': Joi.date().format('YYYY-MM-DD'),
463466
'workPeriods.userHandle': Joi.string()

0 commit comments

Comments
 (0)