From 849f9efe32e8d645b4a0b3ad2ef9d6d34156f903 Mon Sep 17 00:00:00 2001 From: Tom Coombs Date: Thu, 15 Aug 2024 19:37:09 -0400 Subject: [PATCH] solo create fix --- controllers/TrainingController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {