diff --git a/pis-connect.js b/pis-connect.js index 6a532c5..3c4b88b 100644 --- a/pis-connect.js +++ b/pis-connect.js @@ -70,7 +70,7 @@ app.post("/connect", async (req, res) => { psu_type: req.body.psu_type || 'retail', country: req.body.country || 'fr', scheme: req.body.scheme, - expiry: req.body.expiry, + expiry: req.body.expiry || undefined, scheduled_expiration_policy: req.body.scheduled_expiration_policy };