Allow '0' minimumBookingNotice
parent
df654e36a4
commit
637fe4d49c
|
@ -121,9 +121,10 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||||
periodStartDate: req.body.periodStartDate,
|
periodStartDate: req.body.periodStartDate,
|
||||||
periodEndDate: req.body.periodEndDate,
|
periodEndDate: req.body.periodEndDate,
|
||||||
periodCountCalendarDays: req.body.periodCountCalendarDays,
|
periodCountCalendarDays: req.body.periodCountCalendarDays,
|
||||||
minimumBookingNotice: req.body.minimumBookingNotice
|
minimumBookingNotice:
|
||||||
? parseInt(req.body.minimumBookingNotice)
|
req.body.minimumBookingNotice || req.body.minimumBookingNotice == 0
|
||||||
: undefined,
|
? parseInt(req.body.minimumBookingNotice, 10)
|
||||||
|
: undefined,
|
||||||
price: req.body.price,
|
price: req.body.price,
|
||||||
currency: req.body.currency,
|
currency: req.body.currency,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue