Skip to content

Commit

Permalink
added vatusa create solo to api
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcoombs2000 committed Aug 15, 2024
1 parent 283b560 commit eff4bdb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/TrainingController.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,10 @@ async (req, res) => {
towersoloExpiration: req.body.expDate,
soloPosition: req.body.position
});

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}`)

return res.json(res.stdRes);
} catch(e) {
req.app.Sentry.captureException(e);
Expand Down

0 comments on commit eff4bdb

Please sign in to comment.