Bugfix/year change (#1323)
This commit is contained in:
1 parent
e6f71c81bb
commit
a3bd226347
6 files changed
+132
-110
No files matched your search
@@ -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,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user