Bugfix/year change (#1323)

This commit is contained in:
Alex van Andel authored and GitHub committed 2021-12-16 15:20:38 +00:00
1 parent e6f71c81bb
commit a3bd226347
6 files changed
+132 -110

No files matched your search

+4 -3
View File
@@ -121,9 +121,10 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
periodStartDate: req.body.periodStartDate,
periodEndDate: req.body.periodEndDate,
periodCountCalendarDays: req.body.periodCountCalendarDays,
minimumBookingNotice: req.body.minimumBookingNotice
? parseInt(req.body.minimumBookingNotice)
: undefined,
minimumBookingNotice:
req.body.minimumBookingNotice || req.body.minimumBookingNotice === 0
? parseInt(req.body.minimumBookingNotice, 10)
: undefined,
price: req.body.price,
currency: req.body.currency,
};