diff --git a/controllers/TrainingController.js b/controllers/TrainingController.js index 0787962..9937b8e 100644 --- a/controllers/TrainingController.js +++ b/controllers/TrainingController.js @@ -437,7 +437,7 @@ async (req, res) => { }); if (pos === 'APP' || pos === 'CTR') - await axios.post(`https://api.vatusa.net/v2/solo?cid=${req.params.id}&position=${req.body.position}&expDate=${towersoloExpiration}&apikey=${process.env.VATUSA_API_KEY}`) + await axios.post(`https://api.vatusa.net/v2/solo?cid=${req.params.id}&position=${req.body.position}&expDate=${req.body.expDate}&apikey=${process.env.VATUSA_API_KEY}`) return res.json(res.stdRes); } catch(e) {