(req, res)
| 30 | }; |
| 31 | |
| 32 | const getWP = async (req, res) => { |
| 33 | try { |
| 34 | if (!req.query.gameId) { |
| 35 | res.status(400).send({ |
| 36 | error: 'gameId is required.' |
| 37 | }); |
| 38 | } else { |
| 39 | let results = await service.getWP(req.query.gameId, req.query.adjustForSpread); |
| 40 | res.send(results); |
| 41 | } |
| 42 | } catch (err) { |
| 43 | Sentry.captureException(err); |
| 44 | res.status(500).send({ |
| 45 | error: 'Something went wrong.' |
| 46 | }); |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | const getPPAByTeam = async (req, res) => { |
| 51 | try { |
nothing calls this directly
no outgoing calls
no test coverage detected